Skip to content
Snippets Groups Projects

Update file MenuParentFormSelector.php

Open kalpana jaiswal requested to merge issue/drupal-2950729:2950729-undefined-offset into 11.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -85,7 +85,7 @@ public function parentSelectElement($menu_parent, $id = '', ?array $menus = NULL
'#type' => 'select',
'#options' => $options,
];
if (!isset($options[$menu_parent])) {
if (strpos($menu_parent, ':') !== FALSE && !isset($options[$menu_parent])) {
// The requested menu parent cannot be found in the menu anymore. Try
// setting it to the top level in the current menu.
[$menu_name] = explode(':', $menu_parent, 2);
Loading