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:
parent
1f79394ac4
commit
2b9777555f
|
@ -26,7 +26,7 @@ class IssueStatus < ActiveRecord::Base
|
||||||
validates_format_of :html_color, :with => /^[a-f0-9]*$/i
|
validates_format_of :html_color, :with => /^[a-f0-9]*$/i
|
||||||
|
|
||||||
def before_save
|
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
|
end
|
||||||
|
|
||||||
# Returns the default status for new issues
|
# Returns the default status for new issues
|
||||||
|
|
Loading…
Reference in New Issue