Commit a7f1d27d authored by Nishant Kumar's avatar Nishant Kumar Committed by Sascha Grossenbacher
Browse files

Issue #3393155 by Nishant: Warning: Undefined array key "description" in...

Issue #3393155 by Nishant: Warning: Undefined array key "description" in token_node_menu_link_submit()
parent 52942ecc
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -718,7 +718,7 @@ function token_node_menu_link_submit($entity_type, NodeInterface $node, &$form,
        }
      }
      $entity->title->value = trim($values['title']);
      $entity->description->value = trim($values['description']);
      $entity->description->value = trim($values['description'] ?? '');
      $entity->menu_name->value = $values['menu_name'];
      $entity->parent->value = $values['parent'];
      $entity->weight->value = isset($values['weight']) ? $values['weight'] : 0;