As per title, if you have a menu structure such as;

Some menu;
- parent
-- test #1
-- test #2

If you delete menu item 'parent' in this case, it's removed but the children it has are still in the db and are not displayed anywhere as their parent is obviously missing.

Pobster

Comments

pobster’s picture

Can you not add some sort of validation for this?

function menu_item_delete_form_validation($form_id, $form_values) {
  $item = menu_get_item($form_values['mid']);
  if (isset($item['children']) form_set_error('something', 'Error, this menu item has children and deleting this will orphan them (or something)');

Pobster

pasqualle’s picture

Status: Active » Closed (won't fix)

This version is not supported. Reopen or create a new issue if the problem exists in any recent version (version equal or above Drupal 5)