From 95b253b75f0bd96cf6461668593e1c943afb891c Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Thu, 10 Jun 2021 10:48:41 +0800 Subject: [PATCH 1/3] * Add outline and schedule for create change. --- module/common/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/common/model.php b/module/common/model.php index 3bffa73350..e883a309e3 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1412,7 +1412,7 @@ EOD; $diff = ''; if(substr_count($value, "\n") > 1 or substr_count($old->$key, "\n") > 1 or - strpos('name,title,desc,spec,steps,content,digest,verify,report,definition,analysis,summary,prevention,resolution', strtolower($key)) !== false) + strpos('name,title,desc,spec,steps,content,digest,verify,report,definition,analysis,summary,prevention,resolution,outline,schedule', strtolower($key)) !== false) { $diff = commonModel::diff($old->$key, $value); } From f7e9df2037d5ad3b98300425713e1049a9d68a61 Mon Sep 17 00:00:00 2001 From: tianshujie98 Date: Thu, 10 Jun 2021 15:22:36 +0800 Subject: [PATCH 2/3] * Add session. --- module/action/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/action/control.php b/module/action/control.php index 2355ae678d..e21987216a 100755 --- a/module/action/control.php +++ b/module/action/control.php @@ -44,6 +44,7 @@ class action extends control $this->session->set('opportunityList', $uri, 'project'); $this->session->set('riskList', $uri, 'project'); $this->session->set('trainplanList', $uri, 'project'); + $this->session->set('roomList', $uri, 'admin'); /* Get deleted objects. */ $this->app->loadClass('pager', $static = true); From e42385a1c3cfa5d1c267d6eb8311ac5906799bc6 Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Fri, 11 Jun 2021 13:51:28 +0800 Subject: [PATCH 3/3] * Modify custom setting verify. --- module/custom/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/custom/control.php b/module/custom/control.php index f0b13b6818..b7792f4b73 100644 --- a/module/custom/control.php +++ b/module/custom/control.php @@ -159,7 +159,7 @@ class custom extends control { if(!is_numeric($key) or $key > 255) $this->send(array('result' => 'fail', 'message' => $this->lang->custom->notice->invalidNumberKey)); } - if(!empty($key) and !isset($oldCustoms[$key]) and $key != 'n/a' and !validater::checkREG($key, '/^[a-z_0-9]+$/')) $this->send(array('result' => 'fail', 'message' => $this->lang->custom->notice->invalidStringKey)); + if(!empty($key) and !isset($oldCustoms[$key]) and $key != 'n/a' and !validater::checkREG($key, '/^[a-z_A-Z_0-9]+$/')) $this->send(array('result' => 'fail', 'message' => $this->lang->custom->notice->invalidStringKey)); /* The length of roleList in user module and typeList in todo module is less than 10. check it when saved. */ if($field == 'roleList' or $module == 'todo' and $field == 'typeList')