From d0a4a17fd9ddd8e0d225e4124f4b82f14871ac6b Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 15 Dec 2021 14:48:31 +0800 Subject: [PATCH] * Modify judgment conditions. --- module/kanban/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/kanban/model.php b/module/kanban/model.php index 5515c80f33..c286371e64 100644 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -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;