From 18efebc50565f99ce73df19db2f06b9db1f969bb Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 26 Aug 2022 15:33:46 +0800 Subject: [PATCH] * Fix bug. --- module/block/model.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/block/model.php b/module/block/model.php index a01977547f..232e965288 100644 --- a/module/block/model.php +++ b/module/block/model.php @@ -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')