* Fix bug.

This commit is contained in:
liumengyi
2022-08-26 15:33:46 +08:00
parent 7345d4e036
commit 18efebc505
+1
View File
@@ -191,6 +191,7 @@ class blockModel extends model
->leftJoin(TABLE_PRODUCT)->alias('t2')->on("t1.product = t2.id")
->where('t1.assignedTo')->eq($this->app->user->account)
->andWhere('t1.deleted')->eq(0)
->andWhere('t1.status')->ne('closed')
->andWhere('t2.deleted')->eq(0)
->fetch('count');
$data['stories'] = (int)$this->dao->select('count(*) AS count')->from(TABLE_STORY)->alias('t1')