OSDN Git Service
(root)
/
redminele
/
redmine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e20417
)
Fixed: Error when editing the wokflow after deleting a status
author
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sat, 14 Jul 2007 11:31:43 +0000
(11:31 +0000)
committer
Jean-Philippe Lang
<jp_lang@yahoo.fr>
Sat, 14 Jul 2007 11:31:43 +0000
(11:31 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@584
e93f8b46
-1217-0410-a6f0-
8f06a7374b81
app/models/issue_status.rb
patch
|
blob
|
history
diff --git
a/app/models/issue_status.rb
b/app/models/issue_status.rb
index
beb06f1
..
3bca612
100644
(file)
--- 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 ? new_statuses.sort{|x, y| x.position <=> y.position } : []
+ new_statuses ? new_statuses.
compact.
sort{|x, y| x.position <=> y.position } : []
end
# Same thing as above but uses a database query