* Code for fix bug #32567.

This commit is contained in:
tianshujie
2023-03-01 15:56:55 +08:00
parent 6fb473eeea
commit fdc0e3fa41
+1 -1
View File
@@ -715,7 +715,7 @@ class programplanModel extends model
$project = $this->loadModel('project')->getByID($projectID);
$setCode = (isset($this->config->setCode) and $this->config->setCode == 1) ? true : false;
$sameCodes = $this->checkCodeUnique($codes, isset($planIDList) ? $planIDList : '');
$sameCodes = $setCode ? $this->checkCodeUnique($codes, isset($planIDList) ? $planIDList : '') : false;
$datas = array();
foreach($names as $key => $name)