From 0901aae61227af757386eb182b703a1f68523e5c Mon Sep 17 00:00:00 2001 From: Aleisha Date: Fri, 18 Dec 2015 00:23:24 +0000 Subject: [PATCH] Bug 14480: Silences warn from editing patron 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 warn appears 4) Apply patch and reload page 5) Notice warns are gone but page still works correctly 6) Add restriction and save, then go back to Edit 7) Confirm restriction shows as it should 8) Remove restriction and save, then go back to Edit 9) Confirm it says "Patron is currently unrestricted". --- koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 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 57d3fe1..759f058 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -941,9 +941,9 @@
Patron restrictions - [% IF ( debarments.size == 0 ) %] + [% IF ( debarments.size != 1 ) %]

Patron is currently unrestricted.

- [% ELSE %] + [% ELSE %] -- 1.7.10.4