From e0483bd6e244fe81a858ad3e22cbd92fe2a83672 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 2 Mar 2020 17:18:34 +0300 Subject: [PATCH] Bug 24776: Remove Borrowers.HasOverdues call Borrowers Template Toolkit plugin contains method HasOverdues that can be directly called from Koha::Patron object. Test plan : 1) Go to circulation page of a patron with overdues 2) Click on print button 3) You see "Print overdues" 4) Go to circulation page of a patron without overdues 5) Click on print button 6) You don't see "Print overdues" Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc index 90fbd0d59b..8af8e5e7cc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -1,6 +1,5 @@ [% INCLUDE 'blocking_errors.inc' %] [% USE Koha %] -[% USE Borrowers %] [% USE Branches %] [% USE Categories %] [% USE AuthorisedValues %] @@ -25,7 +24,7 @@
  • Print summary
  • Print slip
  • Print quick slip
  • - [% IF Borrowers.HasOverdues( patron.borrowernumber ) %] + [% IF patron.has_overdues %]
  • Print overdues
  • [% END %] -- 2.39.5