Problem/Motivation

In SectionLibraryRender.php you do:

$last_item_section = array_pop($sections[$key]);

This will pop the lost item of the array in my case:
['layout-builder__section' => [allSections]

Propose to preserve array key

Patch attached.

Todo

Review & double test/check

CommentFileSizeAuthor
#3 3275451-3-11.diff1.1 KBkriboogh
Command icon 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

Mschudders created an issue. See original summary.

kriboogh’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.1 KB

Tested, applies and works (been using it in production for over a year now).
MR diff added for use in composer.

rajab natshah’s picture

Status: Reviewed & tested by the community » Closed (duplicate)