diff options
author | Go MAEDA <maeda@farend.jp> | 2023-04-05 09:23:44 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-04-05 09:23:44 +0000 |
commit | 5c075233ae9c9a57682994336d6f9a39931a0040 (patch) | |
tree | efd4f6a5bec0551192d840a208f42e2cc1766d24 /app/helpers/queries_helper.rb | |
parent | d7d27374b86fd0fab73487b79d72f9095febebb3 (diff) | |
download | redmine-5c075233ae9c9a57682994336d6f9a39931a0040.tar.gz redmine-5c075233ae9c9a57682994336d6f9a39931a0040.zip |
Group text filters in the filter select list (#38402).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22165 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/queries_helper.rb')
-rw-r--r-- | app/helpers/queries_helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb index d40ee2587..10c59c1a4 100644 --- a/app/helpers/queries_helper.rb +++ b/app/helpers/queries_helper.rb @@ -43,6 +43,8 @@ module QueriesHelper group = :label_time_tracking elsif %w(attachment attachment_description).include?(field) group = :label_attachment + elsif [:string, :text, :search].include?(field_options[:type]) + group = :label_string end if group (grouped[group] ||= []) << [field_options[:name], field] |