summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/controllers/timelog_controller.rb2
-rw-r--r--lib/redmine.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index 93051fd66..cab4a5d21 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -16,7 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class TimelogController < ApplicationController
- menu_item :issues
+ menu_item :time_entries
before_action :find_time_entry, :only => [:show, :edit, :update]
before_action :find_time_entries, :only => [:bulk_edit, :bulk_update, :destroy]
diff --git a/lib/redmine.rb b/lib/redmine.rb
index 71722cc8e..56ad9f6c7 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -255,6 +255,7 @@ Redmine::MenuManager.map :project_menu do |menu|
:html => { :accesskey => Redmine::AccessKeys.key_for(:new_issue) },
:if => Proc.new { |p| Setting.new_item_menu_tab == '1' && Issue.allowed_target_trackers(p).any? },
:permission => :add_issues
+ menu.push :time_entries, { :controller => 'timelog', :action => 'index' }, :param => :project_id, :caption => :label_spent_time
menu.push :gantt, { :controller => 'gantts', :action => 'show' }, :param => :project_id, :caption => :label_gantt
menu.push :calendar, { :controller => 'calendars', :action => 'show' }, :param => :project_id, :caption => :label_calendar
menu.push :news, { :controller => 'news', :action => 'index' }, :param => :project_id, :caption => :label_news_plural