From: Go MAEDA Date: Wed, 5 Apr 2023 09:24:44 +0000 (+0000) Subject: Reorder groups in the filter select list (#38402). X-Git-Tag: 5.1.0~193 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f1ab7d8cf54fb6b207621c583bd42b84b737c43b;p=redmine.git Reorder groups in the filter select list (#38402). Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22166 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/helpers/queries_helper.rb b/app/helpers/queries_helper.rb index 10c59c1a4..d6c6b59f4 100644 --- a/app/helpers/queries_helper.rb +++ b/app/helpers/queries_helper.rb @@ -24,7 +24,7 @@ module QueriesHelper def filters_options_for_select(query) ungrouped = [] - grouped = {} + grouped = {label_string: [], label_date: [], label_time_tracking: [], label_attachment: []} query.available_filters.map do |field, field_options| if field_options[:type] == :relation group = :label_relations