Merge pull request #1845 from dewekk/fix/status-list

사용하지 않는 글쓰기 상태 값 숨김
This commit is contained in:
Kijin Sung 2022-01-11 22:58:14 +09:00 committed by GitHub
commit 22182c4c19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,10 @@ class boardAdminModel 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);
// set order target list