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:
parent
2b9777555f
commit
b9ef10fe3f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue