Drupal has a form cache that maintains uniqueness of form ids (a good thing) but there seems to be an issue with the Panels IPE where if you save the IPE that it double builds the form (or at least doesnt reset the cache) resulting in the form having a non-standard form (i.e. #edit-submit--1) which breaks various CSS.
This use to be a much wider problem, but #1555352: Panels IPE Doesn't Maintain Form IDs solved in during general IPE usage. However, when a user *saves* the IPE it causes this issue. This can be seen in Panopoly Demo when you edit/save the front page since Bartik has custom CSS for the #search-form #edit-submit which doesn't work on #search-form #edit-submit--1.
This is probably going to ultimately be a patch to the Panels IPE module.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1711494-double-ids.patch | 1.18 KB | beeradb |
Comments
Comment #1
populist commentedComment #2
beeradb commentedThis looks to be fixed by moving the clear of $_POST['ajax_html_ids'] = array(); to happen a bit earlier. This fixes the double id generation issue for me, and I can't find any repercussions to doing it (at least within Panopoly).
Comment #3
merlinofchaos commentedCommitted, pushed!