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')