From 89a29c87fc19bd853e36c8a4166d5f71c8f292c2 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 30 Apr 2019 23:48:11 +0000 Subject: Group time tracking filters in the filter select list (#26826). git-svn-id: http://svn.redmine.org/redmine/trunk@18113 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/queries_helper.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/helpers') diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb index bc9752cb6..29c8ae1d9 100644 --- a/app/helpers/queries_helper.rb +++ b/app/helpers/queries_helper.rb @@ -39,6 +39,8 @@ module QueriesHelper group = :field_assigned_to elsif field_options[:type] == :date_past || field_options[:type] == :date group = :label_date + elsif %w(estimated_hours spent_time).include?(field) + group = :label_time_tracking end if group (grouped[group] ||= []) << [field_options[:name], field] -- cgit v1.2.3