Problem/Motivation
Using array_pop/array_push when manipulating sections, transform the key 'layout-builder__section' into a numeric key which breaks other modules integration.
Steps to reproduce
Use UI Styles Layout Builder to add styles to sections. See #3408778: Section styles missing in layout_builder layout editing
Proposed resolution
Preserve key.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | section_library-3416266-4.patch | 1.71 KB | grimreaper |
Issue fork section_library-3416266
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
grimreaperComment #4
grimreaperAttaching patch for Composer usage.
Comment #5
kevinquillen commentedThis seems potentially bad for data - are any maintainers around that can look at this one?
Comment #6
hydra commentedNot a maintainer, but I ran into the same issue a couple times now with other integrations and can confirm that this does work. Not 100% sure about side-effects but I did not ran into any issues with that. Let's give that issue some attention.
Comment #7
grimreaperHi,
In #3490687: Layout Builder: stylize main form/page, I would like to put some default styling for Section Library but that is not possible without the fix. Also without the fix, the styling I put for stuff not related to Section Library are broken.
Comment #8
rajab natshahComment #11
rajab natshahComment #12
rajab natshahComment #13
rajab natshahComment #14
rajab natshah✅ Released section_library-1.1.2
✅ Released section_library-1.2.1
Thanks, Florent, Kevin, and Pascal, for filing the issue, the MR, and testing!