This commit is contained in:
sunguangming
2023-12-23 13:49:11 +08:00
parent 39de16f561
commit 84dd5756e1
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -527,7 +527,7 @@ class programplanModel extends model
/* Check weather need to set code and compute same code. */
$setCode = isset($this->config->setCode) && $this->config->setCode == 1;
$sameCodes = $setCode ? $this->checkCodeUnique($codes, isset($planIDList) ? $planIDList : '') : false;
$sameCodes = $setCode ? $this->checkCodeUnique($code, isset($planIDList) ? $planIDList : '') : false;
/* Prepare the plans user inputted. Process the plan which names not empty only. */
$project = $this->loadModel('project')->getByID($projectID);