From 41a3dc64c518fcf8ccafd0a63ccb0f2579a583be Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 3 Jan 2024 09:53:44 +0800 Subject: [PATCH] * Fix bug #42711. --- module/task/zen.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/task/zen.php b/module/task/zen.php index 96b4e5e549..30b1a2b90d 100644 --- a/module/task/zen.php +++ b/module/task/zen.php @@ -931,6 +931,11 @@ class taskZen extends task foreach($tasks as $rowIndex => $task) { + if(!empty($this->post->estimate[$rowIndex]) and !preg_match("/^[0-9]+(.[0-9]{1,3})?$/", $this->post->estimate[$rowIndex])) + { + dao::$errors["estimate[$rowIndex]"] = $this->lang->task->error->estimateNumber; + } + /* If the task start and end date must be between the execution start and end date, check if the task start and end date accord with the conditions. */ if(!empty($this->config->limitTaskDate)) {