* Code for batch edit execution error.

This commit is contained in:
Yagami
2023-02-17 15:30:52 +08:00
parent 9f0f6014d8
commit 80f3e0e3a0
2 changed files with 6 additions and 6 deletions
+5 -5
View File
@@ -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);
}
}