* Fix error of save WIP.

This commit is contained in:
liyuchun
2021-10-29 14:48:38 +08:00
parent 2e8baf8959
commit dfc29b5cb2
3 changed files with 8 additions and 4 deletions
+6 -4
View File
@@ -491,10 +491,12 @@ class kanbanModel extends model
public function setWIP($columnID)
{
$oldColumn = $this->getColumnById($columnID);
$column = fixer::input('post')
->cleanInt('limit')
->remove('WIPCount,noLimit')
->get();
$column = fixer::input('post')->remove('WIPCount,noLimit')->get();
if(!preg_match("/^-?\d+$/", $column->limit))
{
dao::$errors['limit'] = $this->lang->kanban->error->mustBeInt;
return false;
}
/* Check column limit. */
$sumChildLimit = 0;