Bootstrap Paragraphs accordion paragraph type does not install correctly.

Problem/Motivation

When installing Bootstrap Paragraphs module, there are no active fields when managing form display or managing display, see bp-accordion-manage-display.png screenshot.

There no error in log messages.

Steps to reproduce

  • Install Bootstrap Paragraphs module
  • Go to /admin/structure/paragraphs_type/bp_accordion/form-display or /admin/structure/paragraphs_type/bp_accordion/display
  • See both 'No field is displayed'

Install Bootstrap Paragraphs module

After some research I found that there are no entity form display and not entity view display for bp_accordion, see entity-form-display-conf-export.png and entity-view-display-conf-export.png screenshots.

And when I try to import single configuration core.entity_form_display.paragraph.bp_accordion.default.yml after core.entity_view_display.paragraph.bp_accordion.default.yml I get the following error:

Configuration core.entity_view_display.paragraph.bp_accordion.default depends on the field.field.paragraph.bp_always_show configuration that will not exist after import.

Proposed resolution

After replace config dependency field.field.paragraph.bp_always_show by field.field.paragraph.bp_accordion.bp_always_show into core.entity_form_display.paragraph.bp_accordion.default.yml and core.entity_view_display.paragraph.bp_accordion.default.yml, then installing Bootstrap Paragraphs module on a fresh Drupal installation, all fields are active when managing form display or managing display.

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

dpiet created an issue. See original summary.

dpiet’s picture

Issue summary: View changes
mably’s picture

Issue summary: View changes
dpiet’s picture

Issue summary: View changes
dpiet’s picture

Issue summary: View changes

dpiet’s picture

Status: Active » Needs review
dpiet’s picture

StatusFileSize
new1.88 KB

Here is a patch in order to fix configuration for Bootstrap paragraphs accordion type like proposed in the MR !35

leducdubleuet’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm that the patch fix the issue when installing the module and sub-modules with it. Thanks!

You absolutely need to start from scratch though. Uninstall all modules, add the patch to composer.json, install the modules again.

Be aware that the "Bootstrap Paragraphs Webform" module does not delete its paragraph type "bp_webform" when uninstalling. You have to delete this type manually before being able to install it again.

Thank you very much, I love this module!

thejimbirch’s picture

Thanks for the issue and fix! Merging to dev.

thejimbirch’s picture

Status: Reviewed & tested by the community » Fixed

  • thejimbirch committed ab3f0ef8 on 5.0.x authored by dpiet
    Issue #3456019 by dpiet: fix accordion paragraph type configuration
    

Status: Fixed » Closed (fixed)

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