From ff2fc4910d1ffd2d84244a276fcecfa57f9d862b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Mon, 11 Jan 2016 11:59:14 +0100 Subject: [PATCH] Bug 15135: Remove Warning Subroutine HasOverdues redefined In staff client, while displying patron related pages (e.g. moremember.pl) you get a warning like: moremember.pl: Subroutine HasOverdues redefined at /usr/share/kohaclone/Koha/Template/Plugin/Borrowers.pm line 52. This occurs with all pages that have [% USE Borrowers %] in their templates (directly or via members-toolbar.inc) To test: - Go to Home > Patrons > Patron details for.... - Search for warning above in log - Apply patch - Verify that no more warnings appear - Verify that patron pages behave as before (Solution as of comment #18) Signed-off-by: Marcel de Rooy Verified that warning disappears with this patch. Signed-off-by: Jacek Ablewicz Signed-off-by: Brendan A Gallagher (cherry picked from commit 560bc790db6d3f8f2ff6b4e70db148445ff645e4) Signed-off-by: Julian Maurice --- Koha/Template/Plugin/Borrowers.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Template/Plugin/Borrowers.pm b/Koha/Template/Plugin/Borrowers.pm index 3e2c59bded..44c76fcc3f 100644 --- a/Koha/Template/Plugin/Borrowers.pm +++ b/Koha/Template/Plugin/Borrowers.pm @@ -23,7 +23,7 @@ use Modern::Perl; use base qw( Template::Plugin ); use Koha::Borrower::Debarments qw(); -use C4::Members qw(HasOverdues); +use C4::Members qw(); =pod -- 2.39.5