From f87dc8d36e41f279df0efdcd4166bca782b8ad9b Mon Sep 17 00:00:00 2001 From: Aleisha Date: Tue, 29 Dec 2015 19:39:20 +0000 Subject: [PATCH] Bug 14480: Silences warn from editing patron Argument "" isn't numeric in numeric lt (<) TEST PLAN --------- 1) Go to any patron in staff client 2) Click 'Edit' 3) Check error logs -- warnings should exist. 4) Apply patch 5) Reload page -- warnings should not be triggered. 6) Add restriction and save 7) Go back to edit screen -- restriction should be shown 8) Remove restriction and save 9) Go back to edit screen -- Should say "Patron is currently unrestricted" 10) Run koha qa test tools. Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 e646890..8a8d3d4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -959,9 +959,7 @@
Patron restrictions - [% IF ( debarments.size < 1 ) %] -

Patron is currently unrestricted.

- [% ELSE %] + [% IF ( debarments ) %] @@ -989,7 +987,10 @@ [% END %]
+ [% ELSE %] +

Patron is currently unrestricted.

[% END %] + [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]

Add manual restriction

-- 2.1.0