diff --git a/app/models/query.rb b/app/models/query.rb index 35c4b950c..984fcc2c8 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -227,7 +227,7 @@ class Query < ActiveRecord::Base return @available_filters if @available_filters @available_filters = { "status_id" => { - :type => :list_status, :order => 1, + :type => :list_status, :order => 0, :values => IssueStatus.find(:all, :order => 'position').collect{|s| [s.name, s.id.to_s] } }, "tracker_id" => { diff --git a/test/unit/helpers/queries_helper_test.rb b/test/unit/helpers/queries_helper_test.rb index bcecaeae6..69d945544 100644 --- a/test/unit/helpers/queries_helper_test.rb +++ b/test/unit/helpers/queries_helper_test.rb @@ -35,6 +35,8 @@ class QueriesHelperTest < ActionView::TestCase fo = filters_options(query) assert_equal 31, fo.size assert_equal [], fo[0] + assert_equal "status_id", fo[1][1] + assert_equal "project_id", fo[2][1] assert_equal "tracker_id", fo[3][1] assert_equal "priority_id", fo[4][1] end