* Fixed Save labels clearing other labels.

This commit is contained in:
tianshujie
2023-02-27 16:09:06 +08:00
parent 9f013dea5f
commit fc99d01af9
2 changed files with 2 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ class customModel extends model
for($i = 0; $i <= $sectionIndex; $i ++)
{
$sectionKey = $sections[$i];
$oldSectionArr = $oldSectionArr[$sectionKey];
$oldSectionArr = isset($oldSectionArr[$sectionKey]) ? $oldSectionArr[$sectionKey] : array();
}
$sectionArr = array_merge($oldSectionArr, $sectionArr);
}

View File

@@ -128,7 +128,7 @@ class dev extends control
if($this->server->request_method == 'POST')
{
$this->dev->saveCustomedLang($common, $moduleName, $method, $language);
$this->dev->saveCustomedLang($type, $moduleName, $method, $language);
return $this->send(array('result' => 'success', 'locate' => 'reload', 'message' => $this->lang->saveSuccess));
}