Bugzilla – Attachment 141381 Details for
Bug 31685
Article request count in table caption of opac-user missing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31685: Replace current_article_requests_count in opac-user
Bug-31685-Replace-currentarticlerequestscount-in-o.patch (text/plain), 1.51 KB, created by
Marcel de Rooy
on 2022-10-05 13:51:03 UTC
(
hide
)
Description:
Bug 31685: Replace current_article_requests_count in opac-user
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-10-05 13:51:03 UTC
Size:
1.51 KB
patch
obsolete
>From 0df2376e548e59cf5005d7fd45f0093560d3ef8d Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Wed, 5 Oct 2022 13:45:09 +0000 >Subject: [PATCH] Bug 31685: Replace current_article_requests_count in > opac-user >Content-Type: text/plain; charset=utf-8 > >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> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 d131abc175..d8f4932080 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -1039,7 +1039,7 @@ > } > } > $(document).ready(function(){ >- $('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% current_article_requests_count | html %]')); >+ $('#opac-user-article-requests caption .count').html(AR_CAPTION_COUNT.format('[% current_article_requests.size | html %]')); > > $(".modal-nojs").addClass("modal").addClass("hide").removeClass("modal-nojs"); > >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31685
: 141381