summaryrefslogtreecommitdiffstats
path: root/app/models/issue_status.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-01 08:44:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-10-01 08:44:17 +0000
commite5f5671d66295100d719d4712a03015268d65e02 (patch)
tree3fd5ffdf275047e85b4c5c1a6e77cd2ca6b7c2ac /app/models/issue_status.rb
parent427b47b4d72276b5c80d79cd5f8e16c2aa31da1e (diff)
downloadredmine-e5f5671d66295100d719d4712a03015268d65e02.tar.gz
redmine-e5f5671d66295100d719d4712a03015268d65e02.zip
Added the ability to customize columns of a saved query.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@782 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_status.rb')
-rw-r--r--app/models/issue_status.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/issue_status.rb b/app/models/issue_status.rb
index 13ed27f6c..3929c6774 100644
--- a/app/models/issue_status.rb
+++ b/app/models/issue_status.rb
@@ -51,7 +51,9 @@ class IssueStatus < ActiveRecord::Base
:conditions => ["role_id=? and tracker_id=?", role.id, tracker.id]).collect{ |w| w.new_status }.compact if role && tracker
new_statuses ? new_statuses.sort{|x, y| x.position <=> y.position } : []
end
-
+
+ def to_s; name end
+
private
def check_integrity
raise "Can't delete status" if Issue.find(:first, :conditions => ["status_id=?", self.id])