]> source.dussan.org Git - redmine.git/commitdiff
Reorder groups in the filter select list (#38402).
authorGo MAEDA <maeda@farend.jp>
Wed, 5 Apr 2023 09:24:44 +0000 (09:24 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 5 Apr 2023 09:24:44 +0000 (09:24 +0000)
Patch by Go MAEDA.

git-svn-id: https://svn.redmine.org/redmine/trunk@22166 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/queries_helper.rb

index 10c59c1a4de2097b4888f106b2968b9097a46e21..d6c6b59f4c766cc05bd1482a1f86dea2492efc09 100644 (file)
@@ -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