Does not support custom paragraph bundle filtering widgets

Created on 31 August 2022, almost 2 years ago
Updated 14 May 2024, about 2 months ago

Problem/Motivation

The module does not support custom widgets for paragraphs bundles selection from a field and displays all target bundles instead.

Steps to reproduce

- Install Paragraphs Browser
- Install Paragraphs Selection β†’ module
- Create new 3 paragraph types
- Create a node bundle with a paragraph field which references 2 paragraph types out of 3 available using Paragraphs Selection module
- Configure Paragraphs Browser as usual
- Go to create a new node - the paragraph browser will display all 3 paragraph types instead of 2 types which were configured on the 4th step

Proposed resolution

Use ParagraphSelection::getSortedAllowedTypes() method of paragraph selection handler instead of checking only for standard $handler_settings['target_bundles'] values.

πŸ› Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ΎBelarus Spleshka UAE

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.

Production build 0.69.0 2024