Commit b9ef10fe authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

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
parent 2b977755
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment