* Modify judgment conditions.

This commit is contained in:
liumengyi
2021-12-15 14:48:31 +08:00
parent dbaceb0a29
commit d0a4a17fd9
+1 -1
View File
@@ -221,7 +221,7 @@ class kanbanModel extends model
$column->order = $maxOrder + 1;
}
if(!$column->limit && empty($column->noLimit)) dao::$errors['limit'][] = sprintf($this->lang->error->notempty, $this->lang->kanban->WIP);
if(!$column->limit && empty($_POST['noLimit'])) dao::$errors['limit'][] = sprintf($this->lang->error->notempty, $this->lang->kanban->WIP);
if(!preg_match("/^-?\d+$/", $column->limit) or (!isset($_POST['noLimit']) and $column->limit <= 0))
{
dao::$errors['limit'] = $this->lang->kanban->error->mustBeInt;