- ๐บ๐ธUnited States kazajhodo
I made a patch... of a patch.
When I went to apply my patch, I was editing already patched code.
My combined patch is attached. I did it this way as I'm not all that convinced its the correct way to do it; but at my experience level it seems like the proper place.
This seems to make the clone work fine, and then saves as expected.
- First commit to issue fork.
- last update
over 1 year ago 29 pass - @abu-zakham opened merge request.
- last update
over 1 year ago 29 pass - last update
over 1 year ago 29 pass - ๐ง๐ทBrazil carolpettirossi Campinas - SP
I've tested the latest code from MR #42, and it works as expected in my scenarios.
Without cloning the inline blocks, when I edited the cloned page via the Layout tab, the blocks were there; however, preview of paragraphs was not possible due to the parent entity being incorrect.
Attaching the patch to use in composer.json.
Thank you everyone working on this! :))
- ๐บ๐ธUnited States amitchell-p2
For those tracking different parts of this across several issues:
Using #52, I was running into the issue mentioned in #48.
Just added a new patch (#36) on 2062819 that should solve the missing id issue by using reflection to get the entity id from the plugin:
https://www.drupal.org/project/drupal/issues/3062819#comment-15053937 ๐ Cloned entities don't retain their Inline Block usage Needs work
- last update
over 1 year ago 28 pass, 2 fail - last update
over 1 year ago 28 pass, 2 fail - First commit to issue fork.
- last update
over 1 year ago 29 pass - last update
over 1 year ago 30 pass - last update
over 1 year ago Patch Failed to Apply - Status changed to Needs work
over 1 year ago 6:20pm 22 June 2023 - last update
over 1 year ago 30 pass - ๐ง๐ทBrazil carolpettirossi Campinas - SP
Updated the MR with the latest code from beta4. Working as expected on my layout builder projects :)
- ๐บ๐ฆUkraine anpolimus Kyiv
Last MR diff, updated by @carolpettirossi applies to the beta4 version and fixes the issue.
- Status changed to RTBC
over 1 year ago 11:34am 25 July 2023 - ๐บ๐ฆUkraine anpolimus Kyiv
I tested on a couple of projects the last fix. Last MR fixes the problem on both.
I think it is ready for RTBC but we need somebody else to verify everything is fine. - last update
over 1 year ago 30 pass - last update
over 1 year ago 30 pass - ๐ฌ๐งUnited Kingdom gillarf
I've tested the last MR and it works on my project.
- last update
over 1 year ago 30 pass - last update
about 1 year ago 30 pass -
Rajeshreeputra โ
committed aaa4d9a0 on 2.x authored by
abu-zakham โ
Issue #3050027 by carolpettirossi, tim-diels, Rajeshreeputra,...
-
Rajeshreeputra โ
committed aaa4d9a0 on 2.x authored by
abu-zakham โ
- Status changed to Fixed
about 1 year ago 4:36am 14 September 2023 - ๐ฎ๐ณIndia rajeshreeputra Pune
Merged, release to follow shortly. Thank you for working on it!!
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
9 months ago 9:27pm 6 February 2024 - ๐บ๐ธUnited States andyg5000 North Carolina, USA
Thanks for everyone that worked on this.
Whenever a major bug that can cause data to be deleted is fixed/merged, can we get a new release with it? Please.
- ๐ฉ๐ฐDenmark LupusGr3y
Why on earth has this not been released yet? This is so important!
- Status changed to Needs work
8 months ago 2:17pm 2 April 2024 - ๐ง๐ชBelgium joevagyok
The merged code from this issue introduced a bug on the latest beta5 release!
I understand the urgency of the layout builder issue, but we can't merge code without tests!I see code fragments from #3258535 ๐ Translatable entity reference fields are not cloned correctly Needs work ended up in the merge request, which basically looping through the languages and cloning entities all over the place without actually preventing creating several duplicates and filling up the database with orphan entities.
I will open a merge request to revert this issue and make a new release as it is broken and create an opportunity to fix the problems and implement tests.
-
Rajeshreeputra โ
committed df1c9084 on 2.x
Revert "Issue #3050027 by carolpettirossi, tim-diels, Rajeshreeputra,...
-
Rajeshreeputra โ
committed df1c9084 on 2.x
- ๐ฎ๐ณIndia rajeshreeputra Pune
As the latest release with merge introduced ๐ Revert "Inline Blocks on Layout Builder" issue which introduced a bug of duplicate entity clones Needs review hence reverted and released new tag. Thank you @joevagyok for reporting, you can close the another issue.
- last update
6 months ago Fetch Error - ๐ง๐ทBrazil carolpettirossi Campinas - SP
The MR 67 is working as expected on my project. However, in my case, the content editors must be very careful and select the checkbox to clone the blocks inside blocks.
We are not using paragraphs.
For example, we have an Accordion block. Within the Accordion block type we have a Accordion Items field that you can reference Accordion Item block type.
If the editors are not careful in selecting those fields, they may have references to existing blocks and edits will be performed on the origin as well.It would be nice to get a config to "Select all block_content" when cloning the entity.
- First commit to issue fork.
- ๐บ๐ธUnited States froboy Chicago, IL
Brought patch up to date with the latest in the 2.x branch.
@carolpettirossi you might check out Admin > Configuration > System > Entity clone settings (
/admin/config/system/entity-clone
. It has some configuration options that can be very helpful to users.Enforcing "Checkboxes default value" and "Disable checkboxes" means that all (non-reusable?) blocks will be cloned by default and the boxes will be shown to the user as checked and disabled. Additionally, checking "Hide Layout builder referenced entities checkboxes" will hide the checkboxes altogether for an even cleaner cloning experience.
- ๐ช๐ธSpain Carlos Romero
Carlos Romero โ made their first commit to this issueโs fork.