*An error has been reported on other pages.

This commit is contained in:
孙华伟
2022-04-14 10:32:28 +08:00
parent 93beba2f03
commit d5f6c531d9
4 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ class tree extends control
* @return void
*/
public function manageChild($rootID, $viewType)
{
if(!empty($_POST))
{
$moduleIDList = $this->tree->manageChild($rootID, $viewType);
+2 -5
View File
@@ -50,7 +50,8 @@ $lang->tree->repeatName = 'The name "%s" exists!';
$lang->tree->shouldNotBlank = 'Module name should not be blank!';
$lang->tree->module = 'Module';
$lang->tree->name = 'Name';
$lang->tree->name = 'Module Name';
$lang->tree->wordName = 'Name';
$lang->tree->line = "{$lang->productCommon} Line";
$lang->tree->cate = 'Category';
$lang->tree->dir = 'Directory';
@@ -71,7 +72,3 @@ $lang->tree->short = 'Abbr.';
$lang->tree->all = 'All Modules';
$lang->tree->executionDoc = "{$lang->executionCommon} Document";
$lang->tree->product = $lang->productCommon;
$this->lang->module = new stdclass();
$this->lang->module->name = '名称';
$this->lang->module->short = '简称';
+1 -4
View File
@@ -51,6 +51,7 @@ $lang->tree->shouldNotBlank = '模块名不能为空格!';
$lang->tree->module = '模块';
$lang->tree->name = '模块名称';
$lang->tree->wordName = '名称';
$lang->tree->line = "{$lang->productCommon}线名称";
$lang->tree->cate = '分类名称';
$lang->tree->dir = '目录名称';
@@ -71,7 +72,3 @@ $lang->tree->short = '简称';
$lang->tree->all = '所有模块';
$lang->tree->executionDoc = "{$lang->executionCommon}文档";
$lang->tree->product = "所属{$lang->productCommon}";
$this->lang->module = new stdclass();
$this->lang->module->name = '名称';
$this->lang->module->short = '简称';
+14
View File
@@ -1644,6 +1644,7 @@ class treeModel extends model
$data->short = $short;
$data->order = $order;
$this->setModuleLang();
$this->dao->update(TABLE_MODULE)->data($data)->autoCheck()->where('id')->eq($moduleID)->limit(1)->exec();
}
}
@@ -2040,4 +2041,17 @@ class treeModel extends model
return $tree;
}
/**
* Load module language.
*
* @access public
* @return void
*/
public function setModuleLang()
{
$this->lang->module = new stdclass();
$this->lang->module->name = $this->lang->tree->wordName;
$this->lang->module->short = $this->lang->tree->short;
}
}