Commit 4a0e0474 authored by Dries's avatar Dries

- Patch #10869 by JonBob: the menu.module forget the parent item on form error.

parent df4ec831
......@@ -225,7 +225,8 @@ function menu_edit_item($mid = 0) {
menu_edit_item_save($edit);
drupal_goto('admin/menu');
}
// Fall through.
$output .= menu_edit_item_form($edit);
break;
default:
if ($mid > 0) {
$item = db_fetch_object(db_query('SELECT * FROM {menu} WHERE mid = %d', $mid));
......
......@@ -225,7 +225,8 @@ function menu_edit_item($mid = 0) {
menu_edit_item_save($edit);
drupal_goto('admin/menu');
}
// Fall through.
$output .= menu_edit_item_form($edit);
break;
default:
if ($mid > 0) {
$item = db_fetch_object(db_query('SELECT * FROM {menu} WHERE mid = %d', $mid));
......
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