From 469300d67a182042e65dbd599d3722e7e20cb687 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 5 Oct 2022 13:45:09 +0000 Subject: [PATCH] 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 Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 5db216385708d9420a8f8d32bfc35c81cf194d75) Signed-off-by: Lucas Gass (cherry picked from commit 9b7b41be1f18ee931370dc1e41da9d268fa1d4b9) Signed-off-by: Arthur Suzuki Signed-off-by: Wainui Witika-Park --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index d0c9d993dc..ce5a260dea 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -849,6 +849,7 @@ } } $(document).ready(function(){ + $('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% current_article_requests.size | html %]')); $('#opac-user-views').tabs(); $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs"); $(".suspend-until").prop("readonly",1); -- 2.39.5