mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 19:47:14 +00:00
Fixed an issue where an empty group could appear in the filter selection list caused by r22166 (#38402).
git-svn-id: https://svn.redmine.org/redmine/trunk@22172 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
06c44910cf
commit
544af76dda
@ -52,6 +52,8 @@ module QueriesHelper
|
||||
ungrouped << [field_options[:name], field]
|
||||
end
|
||||
end
|
||||
# Remove empty groups
|
||||
grouped.delete_if {|k, v| v.empty?}
|
||||
# Don't group dates if there's only one (eg. time entries filters)
|
||||
if grouped[:label_date].try(:size) == 1
|
||||
ungrouped << grouped.delete(:label_date).first
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user