mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix #1766 상위 메뉴를 자기 자신으로 설정할수 없도록 수정
상위 메뉴를 자기 자신으로 설정하면 어떠한 메뉴에도 해당 메뉴가 표시되지 않으므로 메뉴를 관리하기 힘들어집니다. 이를 수정합니다.
This commit is contained in:
parent
a97f6d6a05
commit
86fcb8d4b5
1 changed files with 1 additions and 0 deletions
|
|
@ -1460,6 +1460,7 @@ class menuAdminController extends menu
|
|||
|
||||
$target_item = $oMenuAdminModel->getMenuItemInfo($target_srl);
|
||||
if($target_item->menu_item_srl != $target_srl) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
if($target_srl == $parent_srl) throw new Rhymix\Framework\Exceptions\InvalidRequest;
|
||||
// Move the menu location(change the order menu appears)
|
||||
if($mode == 'move')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue