diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-24 14:49:05 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-04-24 14:49:05 +0000 |
commit | 018b81a46a3133c4a294f5da72ee3420c6cc08f4 (patch) | |
tree | 824c740e4c6129c6e3576ac5e8efb2498d0cc86a /app/models/issue_status.rb | |
parent | 941a240535ac1b62f210afefefa4a0013b185a5f (diff) | |
download | redmine-018b81a46a3133c4a294f5da72ee3420c6cc08f4.tar.gz redmine-018b81a46a3133c4a294f5da72ee3420c6cc08f4.zip |
Fixed 10337 Regression: Admin raises issue in project not assigned to
git-svn-id: http://redmine.rubyforge.org/svn/trunk@474 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_status.rb')
-rw-r--r-- | app/models/issue_status.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/issue_status.rb b/app/models/issue_status.rb index 61cb3f282..30a96f4ec 100644 --- a/app/models/issue_status.rb +++ b/app/models/issue_status.rb @@ -39,7 +39,7 @@ class IssueStatus < ActiveRecord::Base # Uses association cache when called more than one time def new_statuses_allowed_to(role, tracker) new_statuses = workflows.select {|w| w.role_id == role.id && w.tracker_id == tracker.id}.collect{|w| w.new_status} if role && tracker - new_statuses.sort{|x, y| x.position <=> y.position } + new_statuses.sort{|x, y| x.position <=> y.position } if new_statuses end # Same thing as above but uses a database query @@ -48,7 +48,7 @@ class IssueStatus < ActiveRecord::Base new_statuses = workflows.find(:all, :include => :new_status, :conditions => ["role_id=? and tracker_id=?", role.id, tracker.id]).collect{ |w| w.new_status } if role && tracker - new_statuses.sort{|x, y| x.position <=> y.position } + new_statuses.sort{|x, y| x.position <=> y.position } if new_statuses end private |