From 90032c6aa024e3784ab5cabec3d3799e4be7c8cd Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 9 Sep 2025 16:21:53 +0800 Subject: [PATCH] * [bug#65326,done,0.1h] add error tip when the left < 0. --- module/task/model.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/task/model.php b/module/task/model.php index d8066a9b6c..55fc34ba3e 100755 --- a/module/task/model.php +++ b/module/task/model.php @@ -486,6 +486,12 @@ class taskModel extends model return false; } + if(!empty($task->left) && $task->left < 0) + { + dao::$errors['left'] = sprintf($this->lang->task->error->recordMinus, $this->lang->task->left); + return false; + } + /* Update parent task status. */ if($oldTask->parent > 0) $this->updateParentStatus($task->id);