diff options
Diffstat (limited to 'app/models/issue_status.rb')
-rw-r--r-- | app/models/issue_status.rb | 2 |
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 |