Fixed: SystemStackError (stack level too deep) on Issue#attributes= after model reload (#4838).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3427 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0ee17b132c
commit
a811f67748
|
@ -159,7 +159,8 @@ class Issue < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
send :attributes_without_tracker_first=, new_attributes, *args
|
send :attributes_without_tracker_first=, new_attributes, *args
|
||||||
end
|
end
|
||||||
alias_method_chain :attributes=, :tracker_first
|
# Do not redefine alias chain on reload (see #4838)
|
||||||
|
alias_method_chain(:attributes=, :tracker_first) unless method_defined?(:attributes_without_tracker_first=)
|
||||||
|
|
||||||
def estimated_hours=(h)
|
def estimated_hours=(h)
|
||||||
write_attribute :estimated_hours, (h.is_a?(String) ? h.to_hours : h)
|
write_attribute :estimated_hours, (h.is_a?(String) ? h.to_hours : h)
|
||||||
|
|
Loading…
Reference in New Issue