From d16859388c7168582f0fb9bb536cb2a47c8229b4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 29 Aug 2016 10:28:25 +0000 Subject: [PATCH] Bug 17213 - Self registration cardnumber is not editable if errors found when form submitted To test: Enable self registration Make sure cardnumber is not in 'PatronSelfRegistrationBorrowerUnwantedField' Enter an invalid or used cardnumber Submit form Note errors appears correctly but cardnumber is not editable Apply Patch Enter an invalid or used cardnumber Submit form Note errors appears correctly and cardnumber is editable --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt index 609ea45..638808f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt @@ -130,7 +130,7 @@ [% END %] Library card number: - [% IF borrower %] + [% IF borrower && !(cardnumber_wrong_length || cardnumber_already_exists) %] [% borrower.cardnumber %] [% ELSE %] -- 2.1.4