* The number of demands is the sum of those assigned to me and those awaiting my review.

This commit is contained in:
hufangzhou
2024-04-17 14:56:53 +08:00
parent 06376c4091
commit 088e281845
+7 -1
View File
@@ -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;
}
}