mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix combined board setting being overwritten on basic config save
This commit is contained in:
parent
46ac583a83
commit
b978b51656
1 changed files with 15 additions and 3 deletions
|
|
@ -33,6 +33,12 @@ class boardAdminController extends board {
|
|||
if(is_array($args->use_status)) $args->use_status = implode('|@|', $args->use_status);
|
||||
unset($args->board_name);
|
||||
|
||||
// Get existing module info
|
||||
if($args->module_srl)
|
||||
{
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($args->module_srl);
|
||||
}
|
||||
|
||||
// setup extra_order_target
|
||||
$extra_order_target = array();
|
||||
if($args->module_srl)
|
||||
|
|
@ -62,9 +68,15 @@ class boardAdminController extends board {
|
|||
$args->meta_description = trim(utf8_normalize_spaces($args->meta_description));
|
||||
|
||||
// if there is an existed module
|
||||
if($args->module_srl) {
|
||||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($args->module_srl);
|
||||
if($module_info->module_srl != $args->module_srl) unset($args->module_srl);
|
||||
if ($args->module_srl && $module_info->module_srl != $args->module_srl)
|
||||
{
|
||||
unset($args->module_srl);
|
||||
}
|
||||
|
||||
// preserve existing config
|
||||
if ($args->module_srl)
|
||||
{
|
||||
$args->include_modules = $module_info->include_modules;
|
||||
}
|
||||
|
||||
// insert/update the board module based on module_srl
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue