mirror of
https://github.com/redmine/redmine.git
synced 2026-06-19 22:41:45 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user