When working on combining Panelizer + FAPE I ran into an issue with the panels edit renderer which prevented content from properly being displayed after the panelizer form was complete. In my specific case I was including field edit forms on the panelizer configuration pages, allowing users to alter the values of form fields while also adjusting display properties. The core of the problem is that the panels_renderer_editor's cache property is stored within $form_state, but never gets reloaded into the renderer on submit. The following patch inspects $form_state and overwrites the renderer's context value with the one in $form_state, if present. This allows content to properly be AJAX'd in after completing the Panelizer wizard.

And yes, the description of this problem is far longer than the actual patch :)

CommentFileSizeAuthor
panels-edit-context-overwrite.patch927 bytesbeeradb

Comments

beeradb’s picture

Issue summary: View changes

slightly altered wording.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed and pushed.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

consistency.

  • Commit 465ba82 on 7.x-3.x, 7.x-3.x-i18n, 8.x-3.x authored by beeradb, committed by merlinofchaos:
    Issue #1788170 by beeradb: Allow the context object to be altered by...