summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-06-17 08:29:05 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-06-17 08:29:05 +0000
commite53660b7177c94aa97030f0f64fe701acb496dc3 (patch)
treee7487e53ea8037e0f352f5743ce2ba95b2c547df /app/controllers
parent51eedb884be57217c588f77335439665627e94d3 (diff)
downloadredmine-e53660b7177c94aa97030f0f64fe701acb496dc3.tar.gz
redmine-e53660b7177c94aa97030f0f64fe701acb496dc3.zip
Highlight "Spent time" in main menu when creating a time entries query.
git-svn-id: http://svn.redmine.org/redmine/trunk@17397 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/queries_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/queries_controller.rb b/app/controllers/queries_controller.rb
index 9a6102a16..647d322ed 100644
--- a/app/controllers/queries_controller.rb
+++ b/app/controllers/queries_controller.rb
@@ -104,6 +104,10 @@ class QueriesController < ApplicationController
render_404
end
+ def current_menu_item
+ @query ? @query.queried_class.to_s.underscore.pluralize.to_sym : nil
+ end
+
private
def find_query