@@ -227,7 +227,7 class Query < ActiveRecord::Base | |||
|
227 | 227 | return @available_filters if @available_filters |
|
228 | 228 | @available_filters = { |
|
229 | 229 | "status_id" => { |
|
230 |
:type => :list_status, :order => |
|
|
230 | :type => :list_status, :order => 0, | |
|
231 | 231 | :values => IssueStatus.find(:all, :order => 'position').collect{|s| [s.name, s.id.to_s] } |
|
232 | 232 | }, |
|
233 | 233 | "tracker_id" => { |
@@ -35,6 +35,8 class QueriesHelperTest < ActionView::TestCase | |||
|
35 | 35 | fo = filters_options(query) |
|
36 | 36 | assert_equal 31, fo.size |
|
37 | 37 | assert_equal [], fo[0] |
|
38 | assert_equal "status_id", fo[1][1] | |
|
39 | assert_equal "project_id", fo[2][1] | |
|
38 | 40 | assert_equal "tracker_id", fo[3][1] |
|
39 | 41 | assert_equal "priority_id", fo[4][1] |
|
40 | 42 | end |
General Comments 0
You need to be logged in to leave comments.
Login now