Skip to content
Snippets Groups Projects
Commit a91da3d9 authored by Martin Wimmer's avatar Martin Wimmer Committed by Saurabh Kumar Singh
Browse files

Issue #3191870 by kitikonti, hmendes: Warning: Undefined variable $entity_type...

Issue #3191870 by kitikonti, hmendes: Warning: Undefined variable $entity_type in Drupal\conditional_fields\Form\ConditionalFieldForm->buildTable() (line 297
parent 34321a8d
No related branches found
No related tags found
No related merge requests found
......@@ -310,10 +310,10 @@ class ConditionalFieldForm extends FormBase {
->getStorage('entity_form_display')
->load("$this->entity_type.$this->bundle_name.default");
if (empty($form_display_entity) && $entity_type == 'taxonomy_term') {
if (empty($form_display_entity) && $this->entity_type == 'taxonomy_term') {
$form_display_entity = $this->entityTypeManager->getStorage('entity_form_display')->create([
'targetEntityType' => 'taxonomy_term',
'bundle' => $bundle_name,
'bundle' => $this->bundle_name,
'mode' => 'default',
'status' => TRUE,
]);
......
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