diff --git a/module/custom/model.php b/module/custom/model.php index f653a11289..b091e14b71 100644 --- a/module/custom/model.php +++ b/module/custom/model.php @@ -63,7 +63,7 @@ class customModel extends model { $sectionKey = key($sectionArr); $sectionArr[$section] = $sectionArr; - unset($sectionArr[$sectionKey]); + if($sectionKey != $section) unset($sectionArr[$sectionKey]); } if(!empty($sectionArr)) $processedLang[$customLang->module] = array_merge_recursive($processedLang[$customLang->module], $sectionArr); } diff --git a/module/dev/control.php b/module/dev/control.php index b33cf1745a..a88a92a0ff 100644 --- a/module/dev/control.php +++ b/module/dev/control.php @@ -183,7 +183,9 @@ class dev extends control { if($this->config->vision == 'lite' and isset($this->config->dev->liteTagMethod["$module-$method"])) $method = $this->config->dev->liteTagMethod["$module-$method"]; $section = str_replace('_', '-', "§ion=featureBar-{$method}"); + $this->dao->delete()->from(TABLE_LANG)->where('lang')->eq($language)->andWhere('module')->eq($module)->andWhere('section')->like("moreSelects-$method%")->andWhere('vision')->eq($this->config->vision)->exec(); } + $key = ''; if($type == 'common') $key = '&key=projectCommon,productCommon,executionCommon';