Skip to content
Snippets Groups Projects
Commit 4a0e0474 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent df4ec831
No related branches found
No related tags found
No related merge requests found
......@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment