- Issue created by @danrod
- 🇨🇦Canada danrod Ottawa
Added a patch to fix this, the patch will check if
$parent["#options"])
is empty or not (at the function menu_workbench_access_default_form_alter() ) and returns nothing if the array element doesn't exist or is empty:function menu_workbench_access_default_form_alter(&$form, &$form_state, $options) { if (!isset($form['menu'])) { return; } // If no options, then no access. if (empty($options)) { $form['menu']['#access'] = FALSE; return; } // Nothing to do if we're not limiting menu items. if (!variable_get('workbench_access_menu_limit', 1)) { return; } // Note that we require menu data for access control. $form['menu']['enabled']['#description'] = t('To enforce access control, this content must be placed in the menu.'); // Adjust the parent form. $parent = &$form['menu']['link']['parent']; // No parent options are set return nothing for now if (!isset($parent["#options"]) && empty($parent["#options"])) { return; } ....