* [misc] adjust task estimate check for batch create.

This commit is contained in:
caoyanyi
2024-08-23 11:17:52 +08:00
committed by 田淑杰
parent 12c9d38353
commit ce1b0b2d44
+1 -1
View File
@@ -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;
}