summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/menu/menu.module7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/menu/menu.module b/modules/menu/menu.module
index e03fb96c6..1af1cec97 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.'));
- }
}
}