mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-20 19:02:14 +09:00
fixed copy page module
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9158 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
4c2a13d0ae
commit
c68838cb98
2 changed files with 16 additions and 3 deletions
|
|
@ -289,9 +289,11 @@
|
|||
$document_list = $oDocumentModel->getDocumentList($args);
|
||||
$documents = $document_list->data;
|
||||
$output = executeQuery('document.deleteModuleDocument', $args);
|
||||
foreach ($documents as $oDocument){
|
||||
$document_srl_list[] = $oDocument->document_srl;
|
||||
}
|
||||
if (is_array($documents)){
|
||||
foreach ($documents as $oDocument){
|
||||
$document_srl_list[] = $oDocument->document_srl;
|
||||
}
|
||||
}
|
||||
//remove from cache
|
||||
$oCacheHandler = &CacheHandler::getInstance('object');
|
||||
if($oCacheHandler->isSupport())
|
||||
|
|
|
|||
|
|
@ -110,6 +110,15 @@
|
|||
foreach($output->data as $key => $val) $grant[$val->name][] = $val->group_srl;
|
||||
}
|
||||
|
||||
// get Extra Vars
|
||||
$extra_args->module_srl = $module_srl;
|
||||
$extra_output = executeQueryArray('module.getModuleExtraVars', $extra_args);
|
||||
if ($extra_output->toBool() && is_array($extra_output->data)){
|
||||
foreach($extra_output->data as $info){
|
||||
$extra_vars->{$info->name} = $info->value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$oDB = &DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
|
@ -127,6 +136,8 @@
|
|||
$module_srl = $output->get('module_srl');
|
||||
// Grant module permissions
|
||||
if(count($grant)) $oModuleController->insertModuleGrants($module_srl, $grant);
|
||||
if ($extra_vars) $oModuleController->insertModuleExtraVars($module_srl, $extra_vars);
|
||||
|
||||
}
|
||||
|
||||
$oDB->commit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue