--- mambo/branches/4.6/administrator/components/com_menus/admin.menus.php 2006/02/21 23:20:16 313 +++ mambo/branches/4.6/administrator/components/com_menus/admin.menus.php 2006/02/22 12:57:20 314 @@ -68,7 +68,14 @@ break; case 'remove': - if ($msg = TrashMenusection( $cid )) { + $msg = ''; + foreach($cid as $_id){ + $_cid = array(); + $_cid[] = $_id; + addDescendants($_id, $_cid); + $msg .= TrashMenuSection( $_cid ); + } + if ($msg) { mosRedirect( 'index2.php?option=com_menus&menutype='. $menutype .'&mosmsg= '.$msg ); } else { mosRedirect( 'index2.php?option=com_menus&menutype='. $menutype ); @@ -709,6 +716,7 @@ } function saveOrder( &$cid, $menutype ) { + global $database; $order = mosGetParam( $_POST, 'order', array(0) ); $row = new mosMenu( $database ); $parents = array();