change "status" issue filter order from 1 to 0 (#12018)

Order 1 is duplicate with "project" filter.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10551 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-10-04 04:09:14 +00:00
parent b571c3dbc9
commit eaf46c5512
2 changed files with 3 additions and 1 deletions

View File

@ -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" => {

View File

@ -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