Skip to content
Snippets Groups Projects
Commit 971e636e authored by Robert Lange's avatar Robert Lange Committed by Mathias Maaß
Browse files

refs #23398 [finc] show only badge count for available ill items

parent 2488defa
Branches
Tags
No related merge requests found
......@@ -57,7 +57,8 @@ class GetUserILLRequestsStats extends \VuFind\AjaxHandler\AbstractUserRequestAct
}
$items = $this->ils->getMyILLRequests($patron);
$stats = [
'total' => count($items)
'total' => count($items),
'available' => array_sum(array_column($items, 'available'))
];
return $this->formatResponse($stats);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment