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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Andrew M Riley’s picture

Issue summary: View changes
Andrew M Riley’s picture

Status: Active » Needs review
FileSize
717 bytes

Attaching a patch that nulls out the triggers on window. (onbeforeunload and onunload) for the ajax return on the ipe panel save.

DamienMcKenna’s picture

This 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).

DamienMcKenna’s picture

Component: Code » IPE integration
Status: Needs review » Reviewed & tested by the community
Issue tags: -ipe +panels_ipe

This was reviewed by others on a project and confirmed to resolve the problem.

DamienMcKenna’s picture

DamienMcKenna’s picture

Issue tags: -panels_ipe +ipe
DamienMcKenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.