Ajax error while saving accordion/tab paragraph type. The paragraph--drowl-paragraphs-types--container-tabs-accordion.html.twig (wrapper) requires fields from the sub-paragraph (=> Single Tab/Accordion), using twig_tweaks

drupal_field('field_paragraphs_title', 'paragraph', item.target_id)

However, item.target_id is not available while creation (NULL), so Twig Tweak fails on getting the fields.

So we show just a very basic text-preview instead the real accordion.

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

thomas.frobieter created an issue. See original summary.

thomas.frobieter’s picture

Status: Active » Fixed

Fixed, i'll drop a new release.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

anybody’s picture

Version: 4.x-dev » 8.x-3.x-dev
Assigned: thomas.frobieter » Unassigned
Status: Closed (fixed) » Active

Just ran into the same issue in version 8.x-3.30 @dgds ;) I'll backport this!

anybody’s picture

Assigned: Unassigned » thomas.frobieter
Status: Active » Needs review

@thomas.frobieter please review MR !34 for 8.x-3.x! :) (backport from 4.x)

anybody’s picture

Status: Needs review » Needs work

Block "unpublished_hint" on template "paragraph--drowl-paragraphs-types.html.twig" does not exist

anybody’s picture

Status: Needs work » Needs review
thomas.frobieter’s picture

Status: Needs review » Reviewed & tested by the community

anybody’s picture

Assigned: thomas.frobieter » Unassigned
Status: Reviewed & tested by the community » Fixed

Fixed in 8.x-3.31

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.