From 722f8faae97f17274598b28952b15a9e0af96ed4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 6 Jun 2007 06:18:47 +0000 Subject: [PATCH] - Patch #147656 by Shakur: bugfix. --- modules/menu/menu.module | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/menu/menu.module b/modules/menu/menu.module index e03fb96c667..1af1cec97c3 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -306,15 +306,12 @@ function menu_edit_item(&$form_state, $type, $id = 0) { function menu_edit_item_validate($form, &$form_state) { $item = $form_state['values']; - if (isset($item['path']) && !menu_path_is_external($item['path'])) { - $path = $item['path']; + if (isset($item['link_path']) && !menu_path_is_external($item['link_path'])) { + $path = $item['link_path']; $item = menu_get_item($path); if (!$item || !$item['access']) { form_set_error('path', t('This path is either invalid or you do not have access to it')); } - elseif ($path != $item['original_path'] && $item['path'] == $path) { - form_set_error('path', t('There is already a menu item pointing to this path.')); - } } }