Bug 31685: Replace current_article_requests_count in opac-user
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 5 Oct 2022 13:45:09 +0000 (13:45 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 5 Oct 2022 19:07:19 +0000 (16:07 -0300)
commit5db216385708d9420a8f8d32bfc35c81cf194d75
tree12f84b4e94155a4bb7e700e99ba345232ae79c5a
parent50d90ff07e498d37743058711167ca8e00593943
Bug 31685: Replace current_article_requests_count in opac-user

Fixing the "( total)" in the caption of the table.

The tt var should be replaced now by current_article_requests.size.
Note that current_article_requests is an array now (from as_list).
We cannot use .count since it is no Koha object.

Test plan:
Submit a few article requests.
Check OPAC account page, and verify that both totals are fine now.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt