If the block field is added to a paragraph type (using paragraphs module), the ajax replaces the wrong form.

Steps to reproduce:
* Install block field and paragraphs modules
* Create a content type
* Install paragraphs module and create a new paragraph type
* Add a block field to the new paragraph type with single value
* Add a paragraph field with unlimited values
* Add a new content
* Add a paragraph and select a block for the block field. The configuration form for that block should appear
* Add another paragraph and select another block for the block field. Instead of the configuration form for that block to appear in the second paragraph, the configuration form of the first paragraph is replaced.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mmrares created an issue. See original summary.

mmrares’s picture

I've created a patch that takes into account field parents when creating the settings_id.

jrockowitz’s picture

Status: Active » Needs review

@mmrares I will definitely commit any patch that makes sense (which yours does) and passes all the existing tests. I am setting this ticket's status to 'Needs Review' to trigger the test bot.

  • jrockowitz committed e4a83df on 8.x-1.x authored by mmrares
    Issue #2834309 by mmrares: Wrong form replacement with ajax when used...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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