Undefined index: #parents in conflict_paragraphs

Created on 9 January 2023, over 2 years ago
Updated 16 August 2023, over 1 year ago

I get the following notice logged when on an edit form that includes a paragraph widget:

Notice: Undefined index: #parents in Drupal\conflict\Entity\ContentEntityConflictHandler->entityFormAlter() (line 136 of modules/contrib/conflict/src/Entity/ContentEntityConflictHandler.php).
Drupal\conflict\Entity\ContentEntityConflictHandler->entityFormAlter(Array, Object, Object, 1) (Line: 177)
conflict_prepare_entity_form(Array, Object, Object, 1) (Line: 25)
conflict_paragraphs_field_widget_paragraphs_form_alter(Array, Object, Array) (Line: 45)
conflict_paragraphs_field_widget_entity_reference_paragraphs_form_alter(Array, Object, Array) (Line: 562)

I have the conflict_paragraphs sub-module enabled.

I don't know if this suggests an actual issue - I could provide a patch to just make the notice go away, but I'm concerned this notice could actually be a symptom of a genuine problem, as I don't really understand what the code should be doing.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom james.williams

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.71.5 2024