Bug 31685

Summary: Article request count in table caption of opac-user missing
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: OPACAssignee: Marcel de Rooy <m.de.rooy>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: arthur.suzuki, lucas, m.de.rooy, wainuiwitikapark
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
22.11.00, 22.05.08, 21.11.15
Circulation function:
Attachments: Bug 31685: Replace current_article_requests_count in opac-user

Description Marcel de Rooy 2022-10-05 13:44:49 UTC
It mentions Article requests ( total)
The total does appear on the tab itself.

Reason: The template still refers to current_article_requests_count which has been replaced.
Trivial fix forthcoming.
Comment 1 Marcel de Rooy 2022-10-05 13:51:03 UTC
Created attachment 141381 [details] [review]
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>
Comment 2 Marcel de Rooy 2022-10-05 13:52:03 UTC
One liner for Tomas.
Comment 3 Tomás Cohen Arazi (tcohen) 2022-10-05 19:35:27 UTC
Pushed to master for 22.11.

Nice work everyone, thanks!
Comment 4 Lucas Gass (lukeg) 2022-12-05 17:01:17 UTC
Backported to 22.05.x for upcoming 22.05.08
Comment 5 Arthur Suzuki 2022-12-14 12:23:39 UTC
applied to 21.11 for 21.11.15
Comment 6 Wainui Witika-Park 2022-12-20 01:56:30 UTC
Backported to 21.05.x for 21.05.22
Comment 7 Wainui Witika-Park 2022-12-23 00:26:27 UTC
Not released in 21.05.22
Comment 8 Wainui Witika-Park 2023-03-15 00:38:21 UTC
(In reply to wainuiwitikapark from comment #7)
> Not released in 21.05.22

Reverted from 21.05 branch