diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-30 08:19:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-30 08:19:56 +0000 |
commit | cd64338a7f0cf9a648365085851bb8cb60b68c56 (patch) | |
tree | 47a2a9f3f7d3a809036c9650bb90a49f333c344f /app | |
parent | 1b8c5d40589d345a582fd2d0ff73c1ebfd88b7fb (diff) | |
download | redmine-cd64338a7f0cf9a648365085851bb8cb60b68c56.tar.gz redmine-cd64338a7f0cf9a648365085851bb8cb60b68c56.zip |
Fixed: Priorities not ordered when displayed as a filter in issue list (#956).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1309 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/models/query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/query.rb b/app/models/query.rb index 99d13aa6a..dfdfa909b 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -139,7 +139,7 @@ class Query < ActiveRecord::Base @available_filters = { "status_id" => { :type => :list_status, :order => 1, :values => IssueStatus.find(:all, :order => 'position').collect{|s| [s.name, s.id.to_s] } }, "tracker_id" => { :type => :list, :order => 2, :values => trackers.collect{|s| [s.name, s.id.to_s] } }, - "priority_id" => { :type => :list, :order => 3, :values => Enumeration.find(:all, :conditions => ['opt=?','IPRI']).collect{|s| [s.name, s.id.to_s] } }, + "priority_id" => { :type => :list, :order => 3, :values => Enumeration.find(:all, :conditions => ['opt=?','IPRI'], :order => 'position').collect{|s| [s.name, s.id.to_s] } }, "subject" => { :type => :text, :order => 8 }, "created_on" => { :type => :date_past, :order => 9 }, "updated_on" => { :type => :date_past, :order => 10 }, |