summaryrefslogtreecommitdiffstats
path: root/app/models/issue_status.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-26 17:50:48 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-01-26 17:50:48 +0000
commitb9ef10fe3fb6e76e1c913a7c260d48b5feed8260 (patch)
tree39dcfab691cbb249a9d8e7db17add95b7617b835 /app/models/issue_status.rb
parent2b9777555fc483aef6af44dee4ec4a781d6f8e70 (diff)
downloadredmine-b9ef10fe3fb6e76e1c913a7c260d48b5feed8260.tar.gz
redmine-b9ef10fe3fb6e76e1c913a7c260d48b5feed8260.zip
fixed: unable to delete an issue status even if it's not used yet
git-svn-id: http://redmine.rubyforge.org/svn/trunk@180 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_status.rb')
-rw-r--r--app/models/issue_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_status.rb b/app/models/issue_status.rb
index 5ec6f3cd5..aafafec19 100644
--- a/app/models/issue_status.rb
+++ b/app/models/issue_status.rb
@@ -45,6 +45,6 @@ class IssueStatus < ActiveRecord::Base
private
def check_integrity
- raise "Can't delete status" if Issue.find(:first, :conditions => ["status_id=?", self.id]) or IssueHistory.find(:first, :conditions => ["status_id=?", self.id])
+ raise "Can't delete status" if Issue.find(:first, :conditions => ["status_id=?", self.id])
end
end