avoid updating child pages which have a default_attribute on change of a template they inherit from
This commit is contained in:
parent
9aa68c4611
commit
2482567db3
|
@ -75,8 +75,10 @@ module Models
|
|||
end
|
||||
|
||||
self.editable_elements.build(new_attributes, el.class)
|
||||
else
|
||||
elsif existing_el.default_attribute.nil?
|
||||
existing_el.attributes = { :disabled => false, :default_content => el.content }
|
||||
else
|
||||
existing_el.attributes = { :disabled => false }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue