mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Hide unnecessary status names from board config
This commit is contained in:
parent
f0df00a82d
commit
621e246530
2 changed files with 10 additions and 2 deletions
|
|
@ -165,7 +165,10 @@ class boardAdminView extends board {
|
|||
|
||||
// get document status list
|
||||
$oDocumentModel = getModel('document');
|
||||
$documentStatusList = $oDocumentModel->getStatusNameList();
|
||||
$documentStatusList = array_intersect_key($oDocumentModel->getStatusNameList(), [
|
||||
'PUBLIC' => true,
|
||||
'SECRET' => true,
|
||||
]);
|
||||
Context::set('document_status_list', $documentStatusList);
|
||||
|
||||
// setup the extra vaiables
|
||||
|
|
|
|||
|
|
@ -1229,7 +1229,12 @@ class documentModel extends document
|
|||
}
|
||||
else
|
||||
{
|
||||
return $lang->status_name_list;
|
||||
$list = $lang->status_name_list;
|
||||
if ($list instanceof ArrayObject)
|
||||
{
|
||||
$list = $list->getArrayCopy();
|
||||
}
|
||||
return $list;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue