Bug 15135: Remove Warning Subroutine HasOverdues redefined
authorMarc Véron <veron@veron.ch>
Mon, 11 Jan 2016 10:59:14 +0000 (11:59 +0100)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 29 Jan 2016 10:50:14 +0000 (11:50 +0100)
commitff2fc4910d1ffd2d84244a276fcecfa57f9d862b
tree589aa1d83815a52d51a17b4739a927aaad9b895f
parent7c806c91d0f6c1ad48e44334fe96270be78dbcee
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 <m.de.rooy@rijksmuseum.nl>
Verified that warning disappears with this patch.

Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
(cherry picked from commit 560bc790db6d3f8f2ff6b4e70db148445ff645e4)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Koha/Template/Plugin/Borrowers.pm