Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While having workbench moderation enabled, saving an entities layout can cause the warning "Confirm Navigation \n This will discard all unsaved changes. Are you sure? \n Are you sure you want to leave this page?" before panelizer redirects the user in panelizer_panels_ipe_ajax_save_commands_alter() This is due to the browser noticing the form with the revision checkbox and log field and incorrectly thinking it was modified.
This is similar to #2235001 but this ticket is related to the IPE/Workbench Moderation/Revisions.
Comment | File | Size | Author |
---|---|---|---|
#2 | panelizer-ipe_warning-2416977-2-D7.patch | 717 bytes | Andrew M Riley |
chrome_navigation_dialog.png | 24.43 KB | Andrew M Riley |
Comments
Comment #1
Andrew M Riley CreditAttribution: Andrew M Riley commentedComment #2
Andrew M Riley CreditAttribution: Andrew M Riley commentedAttaching a patch that nulls out the triggers on window. (onbeforeunload and onunload) for the ajax return on the ipe panel save.
Comment #3
DamienMcKennaThis appears to only happen when using the main "customize" interface, not changing the layout, as the revision fields don't show when changing a layout (#2417325: Add revision fields to layout selector in IPE).
Comment #4
DamienMcKennaThis was reviewed by others on a project and confirmed to resolve the problem.
Comment #5
DamienMcKennaComment #6
DamienMcKennaComment #7
DamienMcKennaCommitted.