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
This commit is contained in:
Jean-Philippe Lang 2007-01-26 17:50:48 +00:00
parent 2b9777555f
commit b9ef10fe3f
1 changed files with 1 additions and 1 deletions

View File

@ -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