Support replicate functionality

Created on 4 January 2019, almost 6 years ago
Updated 12 April 2024, 8 months ago

Paragraphs support Replicate functionality out of the box, but Asymmetric translation does not.

Feature request
Status

RTBC

Version

1.0

Component

Code

Created by

🇧🇪Belgium StryKaizer Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇧🇪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

  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update over 1 year ago
    3 pass
  • 🇧🇪Belgium flyke

    Trying to add this on top of patch #4

  • Status changed to RTBC 8 months ago
  • Open in Jenkins → Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    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

Production build 0.71.5 2024