mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
issue 2658 is_force value is not 'Y', check menu has sub menu
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12141 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e877496921
commit
82e7ce25d6
1 changed files with 11 additions and 0 deletions
|
|
@ -589,6 +589,17 @@
|
|||
$itemInfo = $oMenuAdminModel->getMenuItemInfo($args->menu_item_srl);
|
||||
$args->menu_srl = $itemInfo->menu_srl;
|
||||
|
||||
// Display an error that the category cannot be deleted if it has a child node 603
|
||||
if($args->is_force != 'Y')
|
||||
{
|
||||
$output = executeQuery('menu.getChildMenuCount', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
if($output->data->count > 0)
|
||||
{
|
||||
return new Object(-1, 'msg_cannot_delete_for_child');
|
||||
}
|
||||
}
|
||||
|
||||
// Get information of the menu
|
||||
$menuInfo = $oMenuAdminModel->getMenu($args->menu_srl);
|
||||
$menu_title = $menuInfo->title;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue