Fix allow_no_category being overwritten on module config change

This commit is contained in:
Kijin Sung 2017-12-11 00:11:52 +09:00
parent 1a234070ca
commit 1280f6a0a0

View file

@ -63,10 +63,12 @@ class boardAdminController extends board {
// insert/update the board module based on module_srl
if(!$args->module_srl) {
$args->hide_category = 'N';
$args->allow_no_category = 'N';
$output = $oModuleController->insertModule($args);
$msg_code = 'success_registed';
} else {
$args->hide_category = $module_info->hide_category;
$args->allow_no_category = $module_info->allow_no_category;
$output = $oModuleController->updateModule($args);
$msg_code = 'success_updated';
}