diff --git a/app/models/query.rb b/app/models/query.rb index 984fcc2c8..12a46c73f 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -352,7 +352,7 @@ class Query < ActiveRecord::Base if User.current.allowed_to?(:set_issues_private, nil, :global => true) || User.current.allowed_to?(:set_own_issues_private, nil, :global => true) @available_filters["is_private"] = { - :type => :list, :order => 15, + :type => :list, :order => 16, :values => [[l(:general_text_yes), "1"], [l(:general_text_no), "0"]] } end diff --git a/test/unit/helpers/queries_helper_test.rb b/test/unit/helpers/queries_helper_test.rb index 69d945544..67371bb80 100644 --- a/test/unit/helpers/queries_helper_test.rb +++ b/test/unit/helpers/queries_helper_test.rb @@ -39,5 +39,7 @@ class QueriesHelperTest < ActionView::TestCase assert_equal "project_id", fo[2][1] assert_equal "tracker_id", fo[3][1] assert_equal "priority_id", fo[4][1] + assert_equal "watcher_id", fo[17][1] + assert_equal "is_private", fo[18][1] end end