##// END OF EJS Templates
fixed: setting an issue status as default status leads to an sql error with SQLite...
Jean-Philippe Lang -
r176:2b9777555fc4
parent child
Show More
@@ -26,7 +26,7 class IssueStatus < ActiveRecord::Base
26 validates_format_of :html_color, :with => /^[a-f0-9]*$/i
26 validates_format_of :html_color, :with => /^[a-f0-9]*$/i
27
27
28 def before_save
28 def before_save
29 IssueStatus.update_all "is_default=false" if self.is_default?
29 IssueStatus.update_all "is_default=#{connection.quoted_false}" if self.is_default?
30 end
30 end
31
31
32 # Returns the default status for new issues
32 # Returns the default status for new issues
General Comments 0
You need to be logged in to leave comments. Login now