* Modify judgment conditions.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user