Issue #1096208 by mr.baileys: Fixed PHP notices when creating menu link '#'.
parent
131282f3ef
commit
097c65cc50
|
@ -377,7 +377,7 @@ function menu_edit_item_validate($form, &$form_state) {
|
|||
else {
|
||||
unset($item['options']['fragment']);
|
||||
}
|
||||
if ($item['link_path'] != $parsed_link['path']) {
|
||||
if (isset($parsed_link['path']) && $item['link_path'] != $parsed_link['path']) {
|
||||
$item['link_path'] = $parsed_link['path'];
|
||||
}
|
||||
}
|
||||
|
|
|
@ -318,7 +318,7 @@ class MenuTestCase extends DrupalWebTestCase {
|
|||
* @param string $menu_name Menu name.
|
||||
*/
|
||||
function addInvalidMenuLink($menu_name = 'navigation') {
|
||||
foreach (array('-&-', 'admin/people/permissions') as $link_path) {
|
||||
foreach (array('-&-', 'admin/people/permissions', '#') as $link_path) {
|
||||
$edit = array(
|
||||
'link_path' => $link_path,
|
||||
'link_title' => 'title',
|
||||
|
|
Loading…
Reference in New Issue