From de1796705dd2b6a842323c6d0ed15af920fc5db0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 1 Jun 2017 13:29:45 -0300 Subject: [PATCH] Bug 18789: Use Koha::Patron->image from the templates Now that we have the 'patron' variable in all our templates, we can call Koha::Patron->image and do the check from the templates. Test plan: On the different pages of the patron module, you should see the default image if there is no image attached or the one that has been attached (see pref patronimages) Signed-off-by: Kyle M Hall --- circ/circulation.pl | 1 - koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 4 ++-- .../intranet-tmpl/prog/en/modules/members/moremember.tt | 12 ++++++------ members/boraccount.pl | 2 -- members/deletemem.pl | 1 - members/discharge.pl | 2 -- members/files.pl | 1 - members/housebound.pl | 4 +--- members/mancredit.pl | 1 - members/maninvoice.pl | 1 - members/member-flags.pl | 2 -- members/member-password.pl | 2 -- members/moremember.pl | 5 ----- members/notices.pl | 2 -- members/pay.pl | 3 --- members/paycollect.pl | 4 ---- members/printfeercpt.pl | 2 -- members/printinvoice.pl | 2 -- members/purchase-suggestions.pl | 2 -- members/readingrec.pl | 2 -- members/routing-lists.pl | 2 -- members/statistics.pl | 2 -- 22 files changed, 9 insertions(+), 50 deletions(-) diff --git a/circ/circulation.pl b/circ/circulation.pl index e301458..98928a2 100755 --- a/circ/circulation.pl +++ b/circ/circulation.pl @@ -609,7 +609,6 @@ if ( $patron ) { categoryname => $patron->category->description, expiry => $patron->dateexpiry, is_child => ( $patron->category->category_type eq 'C' ), - picture => ( $patron->image ? 1 : 0 ), ); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc index 2b29bfc..dce95f1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -7,7 +7,7 @@