mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@316 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6c4afb721d
commit
73539eeb2b
5 changed files with 76 additions and 56 deletions
|
|
@ -105,8 +105,15 @@
|
|||
$node_info = $oLayoutModel->getLayoutMenuInfo($args->menu_srl);
|
||||
if($node_info->parent_srl) $parent_srl = $node_info->parent_srl;
|
||||
|
||||
// DB에서 삭제
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
// 자식 노드가 있는지 체크
|
||||
$output = $oDB->executeQuery('layout.getChildMenuCount', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
if($output->data->count>0) return new Object(-1, msg_cannot_delete_for_child);
|
||||
|
||||
// DB에서 삭제
|
||||
$output = $oDB->executeQuery("layout.deleteLayoutMenu", $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue