Skip to content
Snippets Groups Projects
Commit e90ca3b1 authored by Sean Femouw's avatar Sean Femouw Committed by Timo Huisman
Browse files

Issue #3395446 by sean_fremouw, Shreya_th: Warning: Undefined array key...

Issue #3395446 by sean_fremouw, Shreya_th: Warning: Undefined array key "target_bundles" in Drupal\paragraphs_edit\Form\ParagraphCloneForm->getPotentialCloneDestinations() (line 196 of modules/contrib/paragraphs_edit/src/Form/ParagraphCloneForm.php)
parent 5434fe5a
No related branches found
No related tags found
No related merge requests found
......@@ -193,7 +193,7 @@ class ParagraphCloneForm extends ContentEntityForm {
$field_definition = $field_definitions_bundle[$entity_type_id][$bundle][$field];
// Check if field accepts paragraphs of this bundle.
$target_bundles = $field_definition->getSetting('handler_settings')['target_bundles'];
$target_bundles = $field_definition->getSetting('handler_settings')['target_bundles'] ?? '';
if (
!empty($target_bundles) &&
in_array($paragraph_type, $target_bundles)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment