diff --git a/module/my/zen.php b/module/my/zen.php index e7267d34c7..3906d979a5 100644 --- a/module/my/zen.php +++ b/module/my/zen.php @@ -249,7 +249,13 @@ class myZen extends my { /* Get the number of demands assigned to me. */ $this->loadModel('demand')->getUserDemands($this->app->user->account, 'assignedTo', 'id_desc', $pager); - $count['demand'] = $pager->recTotal; + $assignedToDemandCount = $pager->recTotal; + + /* Get the number of demands review by me. */ + $this->loadModel('demand')->getUserDemands($this->app->user->account, 'reviewBy', 'id_desc', $pager); + $reviewByDemandCount = $pager->recTotal; + + $count['demand'] = $assignedToDemandCount + $reviewByDemandCount; } }