Implement loading documents from other modules

This commit is contained in:
Kijin Sung 2020-10-29 01:04:46 +09:00
parent 264c6f0e74
commit ba971f7b5a
6 changed files with 27 additions and 4 deletions

View file

@ -167,6 +167,13 @@ class boardController extends board
}
}
// Preserve module_srl if the document belongs to a module that is included in this board
if ($oDocument->get('module_srl') != $obj->module_srl && in_array($oDocument->get('module_srl'), explode(',', $this->module_info->include_modules ?: '')))
{
$obj->module_srl = $oDocument->get('module_srl');
$obj->category_srl = $oDocument->get('category_srl');
}
// notice & document style same as before if not manager
if(!$this->grant->manager)
{