Problem/Motivation

When an existing layout is duplicated, the elements contained within the layout are displayed in the reverse order in the duplicated version. For example, the below screenshot:
aa

Steps to reproduce

  1. install a vanilla drupal with layout_paragraphs version 3
  2. configure a section or container (a paragraph with layout_paragraphs enabled)
  3. add a simple text paragraph
  4. add a content type with a reference field to these paragraphs (multiple value)
  5. go to the node creation form/page and add a title, add a "section" paragraph
  6. I used the two column layout, but try others why not
  7. add multiple text paragraph instances in a fashion that makes the order clear
  8. save the node, then come back to edit (so far so good)
  9. now click on "duplicate" button in the layout icons and you will see the order reversed for the new duplicated paragraphs!

Proposed resolution

investigate and fix

Remaining tasks

investigate and fix

User interface changes

API changes

Data model changes

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

andras_szilagyi created an issue. See original summary.

andras_szilagyi’s picture

Status: Active » Needs review

Pipeline fails for unrelated reason

alorenc’s picture

Issue tags: +Needs tests

alorenc changed the visibility of the branch 3624902-pipeline-test to hidden.

justin2pin made their first commit to this issue’s fork.

justin2pin’s picture

Status: Needs review » Fixed

Added test coverage, fixed comment length. Cypress tests are failing, but unrelated -- will open a separate issue.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

justin2pin’s picture

Note that this fix was reversed after fixing related issue #3589578: Delta not set correctly for nested layouts