Bugzilla – Attachment 99921 Details for
Bug 24776
Remove useless Borrowers Template Toolkit plugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24776: Remove Borrowers.HasOverdues call
Bug-24776-Remove-BorrowersHasOverdues-call.patch (text/plain), 1.62 KB, created by
Fridolin Somers
on 2020-03-02 14:39:04 UTC
(
hide
)
Description:
Bug 24776: Remove Borrowers.HasOverdues call
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2020-03-02 14:39:04 UTC
Size:
1.62 KB
patch
obsolete
>From 793191f917f22a71e0f3d99e73f9cad51a28bcf1 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >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" >--- > 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 @@ > <li><a id="printsummary" href="#">Print summary</a></li> > <li><a id="printslip" href="#">Print slip</a></li> > <li><a id="printquickslip" href="#">Print quick slip</a></li> >- [% IF Borrowers.HasOverdues( patron.borrowernumber ) %] >+ [% IF patron.has_overdues %] > <li><a id="print_overdues" href="#">Print overdues</a></li> > [% END %] > </ul> >-- >2.25.1
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 24776
:
99921
|
99922
|
99925
|
100411
|
100412
|
100413
|
100580
|
100581
|
100582