mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Implement loading documents from other modules
This commit is contained in:
parent
264c6f0e74
commit
ba971f7b5a
6 changed files with 27 additions and 4 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue