Bug 16996: (follow-up) Do not explode if mandatory fields are missing
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 8 Aug 2016 14:11:56 +0000 (15:11 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Thu, 18 Aug 2016 15:43:01 +0000 (15:43 +0000)
When registering a new patron, if something went wrong, the form is
resent to the template but without the categorycode (not a dropdown list
anymore, but just displayed as a readonly value # TODO LATER).

Signed-off-by: Marc <veron@veron.ch>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt

index 574a5fd..ce9393d 100644 (file)
 
                                         [% IF borrower %]
                                             [% Categories.GetName( borrower.categorycode ) %]
+                                            <input type="hidden" name="borrower_categorycode" value="[% borrower.categorycode %]" />
                                         [% ELSE %]
                                             <select id="borrower_categorycode" name="borrower_categorycode">
                                                 [% FOREACH c IN Categories.all() %]