]> git.koha-community.org Git - koha.git/commit
Bug 11002: simplify patron mandatory field validation
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 7 Oct 2013 08:41:24 +0000 (10:41 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 5 Dec 2013 14:42:25 +0000 (11:42 -0300)
commite6dc671fea264f21b50caed9baa48dec72508464
treec32f2df6cbb786b0b891784023ec3c9406ddd173
parent91b0a6c6f2c256a27226e9d30e9c50d6c89e87cb
Bug 11002: simplify patron mandatory field validation

When the pref BorrowerMandatoryField is set and a librarian forget to
fill fields, a js popup appears with the following message:
  "The following fields are mandatory: surname, etc."
The fields are not translatable.

Test plan:
- fill the pref BorrowerMandatoryField with something like:
  title|zipcode|surname|cardnumber|branchcode
- go the members/memberentry.pl?op=add page
- verify you are not allowed to add the patron without filling all
  mandatory fields.

Signed-off-by: Paola Rossi <paola.rossi@cineca.it>
Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit c900a47aa8c7133036138cf79a81e70b827fe61f)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/js/members.js
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt