Closed (fixed)
Project:
Panelizer (obsolete)
Version:
8.x-4.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
29 Sep 2017 at 07:47 UTC
Updated:
26 Apr 2018 at 19:02 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gaydabura commentedComment #3
gaydabura commentedComment #5
gaydabura commentedComment #6
damienmckennaThis needs tests to confirm the change works as intended.
Comment #7
damienmckennaThis is also a duplicate of #2803089: Panelizer field should only show the enabled view modes, but it doesn't have a patch yet.
Comment #8
gaydabura commentedUpdated code and tests.
Comment #9
gaydabura commentedComment #10
damienmckennaComment #12
damienmckennaThanks for the fix! Committed.
Comment #14
jkellendonk commentedThis patch broke my site at edit time after updating panelizer to 4.1.0. For anyone who's getting notices like the following on panelized node edit pages, you may want to avoid pressing "save", or you may lose your custom overrides for a given view mode that you've entered by the IPE on a given node:
For me, the fix was to add "Full content" to the custom display settings on the content type display screen and to manually delete the rows in node__panelizer corresponding to displays that weren't enabled and clear cache. SQL I used, below, but be careful that you don't kill your website. :)
DELETE FROM node__panelizer WHERE bundle = 'page' AND panelizer_view_mode NOT IN ('default', 'full', 'header', 'teaser');