From ce1b0b2d44eb7d291367855a58ef4772f2409ff2 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Fri, 23 Aug 2024 10:58:28 +0800 Subject: [PATCH] * [misc] adjust task estimate check for batch create. --- module/task/zen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/task/zen.php b/module/task/zen.php index 57dbc20c06..d23c2bf640 100644 --- a/module/task/zen.php +++ b/module/task/zen.php @@ -961,7 +961,7 @@ class taskZen extends task foreach($tasks as $rowIndex => $task) { - if(!empty($this->post->estimate[$rowIndex]) and !preg_match("/^[0-9]+(.[0-9]+)?$/", $this->post->estimate[$rowIndex])) + if(!empty($this->post->estimate[$rowIndex]) and !preg_match("/^[0-9]+(.[0-9]+)?$/", (string)$this->post->estimate[$rowIndex])) { dao::$errors["estimate[$rowIndex]"] = $this->lang->task->error->estimateNumber; }