* Print dao error of activate a execution.

This commit is contained in:
tianshujie
2023-12-18 16:33:21 +08:00
parent f11e9e468f
commit 2b8a69aadb
+1
View File
@@ -1007,6 +1007,7 @@ class executionModel extends model
$begin = $postData->begin;
$end = $postData->end;
if($begin > $end) dao::$errors['end'] = sprintf($this->lang->execution->errorLesserPlan, $end, $begin); /* The begin date should larger than end. */
if(dao::isError()) return false;
/* Check the begin and end date if the execution has a parent, such as a child Stage, Sprint or Kanban. */
if($oldExecution->parent != 0)