@@ -409,7 +409,7 class Issue < ActiveRecord::Base | |||
|
409 | 409 | end |
|
410 | 410 | |
|
411 | 411 | # Overrides assign_attributes so that project and tracker get assigned first |
|
412 |
def assign_attributes |
|
|
412 | def assign_attributes(new_attributes, *args) | |
|
413 | 413 | return if new_attributes.nil? |
|
414 | 414 | attrs = new_attributes.dup |
|
415 | 415 | attrs.stringify_keys! |
@@ -419,10 +419,8 class Issue < ActiveRecord::Base | |||
|
419 | 419 | send "#{attr}=", attrs.delete(attr) |
|
420 | 420 | end |
|
421 | 421 | end |
|
422 | send :assign_attributes_without_project_and_tracker_first, attrs, *args | |
|
422 | super attrs, *args | |
|
423 | 423 | end |
|
424 | # Do not redefine alias chain on reload (see #4838) | |
|
425 | alias_method_chain(:assign_attributes, :project_and_tracker_first) unless method_defined?(:assign_attributes_without_project_and_tracker_first) | |
|
426 | 424 | |
|
427 | 425 | def attributes=(new_attributes) |
|
428 | 426 | assign_attributes new_attributes |
General Comments 0
You need to be logged in to leave comments.
Login now