When using stylizer in the IPE if you select a style with settings options, on step 2 (panels_edit_style_settings_form) the form will refuse to save if reloaded. In our specific case we're adding preview functionality combined with auto submit. When a preview is generated and the form is reloaded, the reference breaks, causing the data in the settings form to not be properly saved.
The fix is to copy the value from form_state back into the renderer editors cache before the cache is saved. Patch is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1734772-style-setttings.patch | 4.64 KB | beeradb |
| #1 | 1734772-style-setttings.patch | 4.64 KB | beeradb |
| stylizer-form-caching.patch | 802 bytes | beeradb |
Comments
Comment #1
beeradb commentedIgnore this patch, I accidentally attached it in the wrong place :)
Comment #2
beeradb commentedUgh. Bad day. Ignore this one too :)
Comment #3
populist commentedThis got reviewed in #20 of #1734772: Preview Widget on panels_edit_style_settings_form so marking RTBC.
Comment #4
merlinofchaos commentedCommitted and pushed the patch in the initial issue.