Closed dpjs closed 12 months ago
- if(isset($task->estStarted) and isset($task->deadline) and !helper::isZeroDate($task->deadline) and $task->deadline <= $task->estStarted) dao::$errors['deadline'] = sprintf($this->lang->error->ge, $this->lang->task->deadline, $task->estStarted);
+ if(isset($task->estStarted) and isset($task->deadline) and !helper::isZeroDate($task->deadline) and $task->deadline < $task->estStarted) dao::$errors['deadline'] = sprintf($this->lang->error->ge, $this->lang->task->deadline, $task->estStarted);
18.7 及以后版本已修复该问题。
创建任务时提示截止时间不能小于开始时间,但在编辑该任务时又是可以的。正常创建任务时截止时间大于等于开始时间,应和编辑任务时判断保持一致。这个问题很紧急,能够临时修复下。![image](https://github.com/easysoft/zentaopms/assets/19635623/1d9d0248-faa6-4a7d-8f0a-60424ad384aa)