core/modules/taxonomy/src/Entity/Term.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/taxonomy/src/Entity/Term.php b/core/modules/taxonomy/src/Entity/Term.php index a704687..77cefcc 100644 --- a/core/modules/taxonomy/src/Entity/Term.php +++ b/core/modules/taxonomy/src/Entity/Term.php @@ -182,7 +182,7 @@ public static function baseFieldDefinitions(EntityTypeInterface $entity_type) { public static function bundleFieldDefinitions(EntityTypeInterface $entity_type, $bundle, array $base_field_definitions) { // Only terms in the same bundle can be a parent. $fields['parent'] = clone $base_field_definitions['parent']; - $fields['parent']->setSetting('handler_settings', ['target_bundles' => [$bundle]]); + $fields['parent']->setSetting('handler_settings', ['target_bundles' => [$bundle => $bundle]]); return $fields; }