Commit 477028c2 authored by Dries's avatar Dries
Browse files

- Patch #40795 by Richard: fixed problem with editing menu items.

parent 12e01517
......@@ -403,7 +403,7 @@ function menu_edit_item_form($edit) {
$form['path'] = array('#type' => 'textfield', '#title' => t('Path'), '#default_value' => $edit['path'], '#description' => $path_description, '#required' => TRUE);
}
else {
$form['_path'] = array('#type' => 'item', '#title' => t('Path'), '#title' => l($edit['path'], $edit['path']));
$form['_path'] = array('#type' => 'item', '#title' => t('Path'), '#description' => l($edit['path'], $edit['path']));
$form['path'] = array('#type' => 'hidden', '#value' => $edit['path']);
}
$expanded = $edit['type'] & MENU_EXPANDED ? 1 : 0;
......
......@@ -403,7 +403,7 @@ function menu_edit_item_form($edit) {
$form['path'] = array('#type' => 'textfield', '#title' => t('Path'), '#default_value' => $edit['path'], '#description' => $path_description, '#required' => TRUE);
}
else {
$form['_path'] = array('#type' => 'item', '#title' => t('Path'), '#title' => l($edit['path'], $edit['path']));
$form['_path'] = array('#type' => 'item', '#title' => t('Path'), '#description' => l($edit['path'], $edit['path']));
$form['path'] = array('#type' => 'hidden', '#value' => $edit['path']);
}
$expanded = $edit['type'] & MENU_EXPANDED ? 1 : 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment