When creating a new revision, if the display is customized, i.e. 'did' != 0, it should always create a new display record. This will avoid problems e.g. reverting a scenario and then customizing the display without creating a new revision would in fact customize the previous revision's display along with the current revision's display too.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | panelizer-n2354437-4.patch | 3.6 KB | damienmckenna |
Comments
Comment #1
damienmckennaThis changes revision creation so it sets $panelizer->display_is_modified, which then triggers a new display be created.
Comment #2
damienmckennaThis needs an update script to fix existing records.
Comment #3
damienmckennaUpdate script included.
Comment #4
damienmckennaThis version will clear the caches of any entities which were modified.
Comment #5
damienmckennaComment #6
damienmckennaThis issue is useful too: #2082841: Reset to defaults should call entity's update hooks
Comment #7
damienmckennaCommitted.