Add option to allow selecting no category

관리자 이외의 사용자가 글을 쓸 때 분류를 선택하지 않아도 되도록
허용하는 옵션 추가 (기본값: 허용하지 않음)
This commit is contained in:
Kijin Sung 2017-12-05 23:36:26 +09:00
parent 2c64e16bd2
commit eb3108b446
5 changed files with 19 additions and 2 deletions

View file

@ -170,6 +170,7 @@ class boardAdminController extends board {
}
$module_info->hide_category = Context::get('hide_category') == 'Y' ? 'Y' : 'N';
$module_info->allow_no_category = Context::get('allow_no_category') == 'Y' ? 'Y' : 'N';
$oModuleController = getController('module'); /* @var $oModuleController moduleController */
$output = $oModuleController->updateModule($module_info);
if(!$output->toBool())