From 2067f07a39ee5cc1bf930eeb0de91bf9d8361267 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Fri, 2 Jun 2023 01:09:36 +0000 Subject: [PATCH] * Fix bug #35727, Violate not null constraint on [progress]. --- 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 57c4976279..ebff36897c 100755 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -3068,7 +3068,7 @@ class kanbanModel extends model dao::$errors[] = $this->lang->kanbancard->error->progressIllegal; return false; } - $this->dao->update(TABLE_KANBANCARD)->set('progress')->eq($this->post->progress)->set('status')->eq('doing')->where('id')->eq($cardID)->exec(); + $this->dao->update(TABLE_KANBANCARD)->set('progress')->eq($this->post->progress ? $this->post->progress : 0)->set('status')->eq('doing')->where('id')->eq($cardID)->exec(); } /**