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:
ovclas 2012-10-29 10:20:14 +00:00
parent 1d1a3b6083
commit 4024684b6e

View file

@ -439,7 +439,17 @@
// if menu type is module, check exists module and update
if($itemInfo->is_shortcut != 'Y' && !preg_match('/^http/i',$itemInfo->url))
{
// check already created module instance
$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);
// if not exist module, return error