From 80f3e0e3a07b3220d6632ef37ac66e8f35f486c3 Mon Sep 17 00:00:00 2001 From: Yagami Date: Fri, 17 Feb 2023 15:30:52 +0800 Subject: [PATCH] * Code for batch edit execution error. --- module/execution/model.php | 10 +++++----- module/execution/view/batchedit.html.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index 8d0242bd36..cba47aa3de 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -777,13 +777,13 @@ class executionModel extends model /* Check unique code for edited executions. */ if(isset($data->codes) and empty($executionCode)) { - dao::$errors["codes\[$executionID\]"][] = sprintf($this->lang->error->notempty, $this->lang->execution->execCode); + dao::$errors["codes$executionID"][] = sprintf($this->lang->error->notempty, $this->lang->execution->execCode); } elseif(isset($data->codes) and $executionCode) { if(isset($codeList[$executionCode])) { - dao::$errors["codes\[$executionID\]"][] = sprintf($this->lang->error->unique, $this->lang->execution->execCode, $executionCode); + dao::$errors["codes$executionID"][] = sprintf($this->lang->error->unique, $this->lang->execution->execCode, $executionCode); } $codeList[$executionCode] = $executionCode; } @@ -796,7 +796,7 @@ class executionModel extends model { if($parentID == $parents[$repeatID]) { - dao::$errors["names\[$executionID\]"][] = $this->lang->execution->errorNameRepeat; + dao::$errors["names$executionID"][] = $this->lang->execution->errorNameRepeat; break; } } @@ -838,12 +838,12 @@ class executionModel extends model if($begin < $parentBegin) { - dao::$errors["begins\[$executionID\]"][] = sprintf($this->lang->execution->errorLetterParent, $parentBegin); + dao::$errors["begins$executionID"][] = sprintf($this->lang->execution->errorLetterParent, $parentBegin); } if($end > $parentEnd) { - dao::$errors["ends\[$executionID\]"][] = sprintf($this->lang->execution->errorGreaterParent, $parentEnd); + dao::$errors["ends$executionID"][] = sprintf($this->lang->execution->errorGreaterParent, $parentEnd); } } diff --git a/module/execution/view/batchedit.html.php b/module/execution/view/batchedit.html.php index ff8f7af6b4..477eeaa4e8 100755 --- a/module/execution/view/batchedit.html.php +++ b/module/execution/view/batchedit.html.php @@ -92,7 +92,7 @@ tab == 'project' and isset($project) and ($project->model == 'agileplus' or $project->model == 'waterfallplus')):?> execution->typeList, $executions[$executionID]->type);?> - name, "class='form-control'");?> + name, "class='form-control' id='names{$executionID}'");?> setCode) or $config->setCode == 1):?> code, "id='codes{$executionID}' class='form-control'");?>