mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
issue 2522 url name change to module_id
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11989 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d7f8aa3dbd
commit
d33c717fd5
1 changed files with 5 additions and 5 deletions
|
|
@ -467,26 +467,26 @@
|
|||
{
|
||||
// check already created module instance
|
||||
$oModuleModel = &getModel('module');
|
||||
if($request->url != $itemInfo->url)
|
||||
if($request->module_id != $itemInfo->url)
|
||||
{
|
||||
$output = $oModuleModel->getModuleInfoByMid($request->url);
|
||||
$output = $oModuleModel->getModuleInfoByMid($request->module_id);
|
||||
if($output->module_srl)
|
||||
{
|
||||
return new Object(-1, 'msg_module_name_exists');
|
||||
}
|
||||
}
|
||||
|
||||
$moduleInfo = $oModuleModel->getModuleInfoByMid($itemInfo->url);
|
||||
// if not exist module, return error
|
||||
$moduleInfo = $oModuleModel->getModuleInfoByMid($itemInfo->url);
|
||||
if(!$moduleInfo)
|
||||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
|
||||
$moduleInfo->mid = $request->url;
|
||||
$moduleInfo->mid = $request->module_id;
|
||||
$oModuleController = &getController('module');
|
||||
$oModuleController->updateModule($moduleInfo);
|
||||
$args->url = $request->url;
|
||||
$args->url = $request->module_id;
|
||||
}
|
||||
|
||||
if($request->menu_name_key)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue