Support replicate functionality

Created on 4 January 2019, over 5 years ago
Updated 12 April 2024, 3 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 about 1 year ago
    3 pass
  • πŸ‡§πŸ‡ͺBelgium flyke

    Trying to add this on top of patch #4

  • Status changed to RTBC 3 months ago
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update 3 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.69.0 2024