mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 15:49:57 +09:00
issue 2640 when menu default info update, mid duplicate check
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11957 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1d1a3b6083
commit
4024684b6e
1 changed files with 10 additions and 0 deletions
|
|
@ -439,7 +439,17 @@
|
||||||
// if menu type is module, check exists module and update
|
// if menu type is module, check exists module and update
|
||||||
if($itemInfo->is_shortcut != 'Y' && !preg_match('/^http/i',$itemInfo->url))
|
if($itemInfo->is_shortcut != 'Y' && !preg_match('/^http/i',$itemInfo->url))
|
||||||
{
|
{
|
||||||
|
// check already created module instance
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
|
if($request->url != $itemInfo->url)
|
||||||
|
{
|
||||||
|
$output = $oModuleModel->getModuleInfoByMid($request->url);
|
||||||
|
if($output->module_srl)
|
||||||
|
{
|
||||||
|
return new Object(-1, 'msg_module_name_exists');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$moduleInfo = $oModuleModel->getModuleInfoByMid($itemInfo->url);
|
$moduleInfo = $oModuleModel->getModuleInfoByMid($itemInfo->url);
|
||||||
|
|
||||||
// if not exist module, return error
|
// if not exist module, return error
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue