From d4f30b31914e656f4d8338e961afb38d5c5074f0 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 10 Nov 2023 11:31:28 +0000 Subject: [PATCH] Bug 35310: Show current renewal value of the currently active check out Test plan, with the previous 2 patches applied: 1) Checkout an item to Koha user, barcode 39999000003192 2) Renew that barcode 3) Visit the items page of the biblio record, click on 'View' in front of 'Current renewals' /cgi-bin/koha/catalogue/moredetail.pl?biblionumber=76 4) Notice it shows the renewals as expected 5) Return the same item: 39999000003192 6) Repeat 1) to 3). Notice it shows 2 current renewals even tho only 1 corresponds to the currently active check out 7) Renew again. Notice it shows 3 current renewals even tho only 2 correspond to the currently active check out 7) Apply this patch. Notice it now only shows 2 current renewals Signed-off-by: David Nind Signed-off-by: Katrin Fischer (cherry picked from commit e756faf860c7475e2761e45f3ebc152c34a2d036) Signed-off-by: Fridolin Somers (cherry picked from commit b242a03a30943eda94762374e3526b14c2f57ebd) Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index faa91036ee..94fdc3dde4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -180,11 +180,11 @@ [% END %] [% END %] - [% IF ITEM_DAT.renewals && ITEM_DAT.object.checkout %] + [% IF ITEM_DAT.object.checkout.renewals.count && ITEM_DAT.object.checkout %]
  • Current renewals: - [% ITEM_DAT.renewals | html %] - [ View ] + [% ITEM_DAT.object.checkout.renewals.count | html %] + [ View ]
  • [% END %] [% IF itemlostloop %] -- 2.39.5