diff --git a/module/execution/model.php b/module/execution/model.php index f4393ec61a..1a745541fc 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -663,7 +663,7 @@ class executionModel extends model ->batchcheck($this->config->execution->edit->requiredFields, 'notempty') ->checkIF($execution->begin != '', 'begin', 'date') ->checkIF($execution->end != '', 'end', 'date') - ->checkIF($execution->end != '', 'end', 'gt', $execution->begin) + ->checkIF($execution->end != '', 'end', 'ge', $execution->begin) ->checkIF((!empty($execution->name) and $this->config->systemMode == 'new'), 'name', 'unique', "id != $executionID and type in ('sprint','stage') and `project` = $projectID") ->checkIF(!empty($execution->code), 'code', 'unique', "id != $executionID and type in ('sprint','stage')") ->where('id')->eq($executionID)