mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
modified to get all submodule categories included in combined board.
This commit is contained in:
parent
3545dd6c87
commit
46094c9fdd
1 changed files with 8 additions and 5 deletions
|
|
@ -227,16 +227,19 @@ class BoardView extends Board
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get category list for documents belong to other modules. (i.e. submodule in combined board)
|
// Get category list for documents belong to other modules. (i.e. submodule in combined board)
|
||||||
$document_srl = Context::get('document_srl');
|
if (empty($this->include_modules))
|
||||||
if ($document_srl)
|
|
||||||
{
|
{
|
||||||
$module_srl = DocumentModel::getDocument($document_srl)->get("module_srl");
|
$category_list = DocumentModel::getCategoryList($this->module_srl);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$module_srl = $this->module_srl;
|
$category_list = array();
|
||||||
|
foreach ($this->include_modules as $module_srl)
|
||||||
|
{
|
||||||
|
$category_list += DocumentModel::getCategoryList($module_srl);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Context::set('category_list', DocumentModel::getCategoryList($module_srl));
|
Context::set('category_list', $category_list);
|
||||||
|
|
||||||
$oSecurity = new Security();
|
$oSecurity = new Security();
|
||||||
$oSecurity->encodeHTML('category_list.', 'category_list.childs.');
|
$oSecurity->encodeHTML('category_list.', 'category_list.childs.');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue