From b9ef10fe3fb6e76e1c913a7c260d48b5feed8260 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 26 Jan 2007 17:50:48 +0000 Subject: [PATCH] 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 --- app/models/issue_status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5