Move getError from controller to model.

This commit is contained in:
zhouxin
2022-03-17 07:50:54 +00:00
parent b705f22460
commit 78263786ed
2 changed files with 18 additions and 5 deletions
+2
View File
@@ -1656,6 +1656,8 @@ class execution extends control
if($this->post->names)
{
$allChanges = $this->execution->batchUpdate();
if(dao::isError()) return print(js::error(dao::getError()));
if(!empty($allChanges))
{
foreach($allChanges as $executionID => $changes)