From 220480bc997a30059ca68d395ba135a1e724710b Mon Sep 17 00:00:00 2001 From: Aleisha Date: Mon, 14 Dec 2015 19:46:46 +0000 Subject: [PATCH] Bug 14480: Silencing warns from editing patron This warn is triggered when editing a patron: Argument "" isn't numeric in numeric lt (<) at /home/vagrant/kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt line 974. To test: 1) Go to any patron (ie this link http://localhost:8081/cgi-bin/koha/members/moremember.pl?borrowernumber=1369) 2) Click Edit 3) Notice the above warns 4) Apply patch and reload page 5) Notice warns are gone but page still works correctly --- koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index a3b7a9d..57d3fe1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -941,7 +941,7 @@
Patron restrictions - [% IF ( debarments.size < 1 ) %] + [% IF ( debarments.size == 0 ) %]

Patron is currently unrestricted.

[% ELSE %] -- 1.7.10.4