From 2b9777555fc483aef6af44dee4ec4a781d6f8e70 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 26 Jan 2007 17:39:36 +0000 Subject: [PATCH] fixed: setting an issue status as default status leads to an sql error with SQLite git-svn-id: http://redmine.rubyforge.org/svn/trunk@179 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 b821df258..5ec6f3cd5 100644 --- a/app/models/issue_status.rb +++ b/app/models/issue_status.rb @@ -26,7 +26,7 @@ class IssueStatus < ActiveRecord::Base validates_format_of :html_color, :with => /^[a-f0-9]*$/i def before_save - IssueStatus.update_all "is_default=false" if self.is_default? + IssueStatus.update_all "is_default=#{connection.quoted_false}" if self.is_default? end # Returns the default status for new issues