* Fix bug #35727, Violate not null constraint on [progress].

This commit is contained in:
tanghucheng
2023-06-02 01:09:36 +00:00
parent e6ca23c605
commit 2067f07a39
+1 -1
View File
@@ -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();
}
/**