- 🇧🇪Belgium flyke
When trying to replicate a simple node with 2 paragraphs using the paragraphs_asymmetric_translation_widgets, I get the following error:
AssertionError: Cannot load the "paragraph" entity with NULL ID. in assert() (line 295 of core/lib/Drupal/Core/Entity/EntityStorageBase.php).
It is fixable by editing
paragraphs_asymmetric_translation_widgets/src/EventSubscriber/ReplicateAsymmetricParagraphsSubscriber.php
And adding:
// Validate target_id before trying to replicate the ite. if (!isset($item['target_id']) || is_null($item['target_id'])) { continue; }
After line 75
- last update
over 1 year ago 3 pass - Status changed to RTBC
8 months ago 9:51am 12 April 2024 - last update
8 months ago 3 pass - 🇪🇸Spain rodrigoaguilera Barcelona
Just one more confirmation that the patch yields the expected results.
Before: replicas shared paragrahs in non-default translations
After: replicas create new clones of paragraphs for the new replica.Thanks for the contribution