This commit is contained in:
hufangzhou
2021-02-07 14:40:53 +08:00
parent 7f91a9bfff
commit 7b7e6ca1e2
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1984,7 +1984,7 @@ class projectModel extends model
return false;
}
if(!preg_match("/^[0-9]+(.[0-9]{1,3})?$/", $task->estimate))
if(!preg_match("/^[0-9]+(.[0-9]{1,3})?$/", $task->estimate) and !empty($task->estimate))
{
dao::$errors['message'][] = $this->lang->task->error->estimateNumber;
return false;