From: Cesar Velez Date: Wed, 9 May 2018 15:40:40 +0000 (-0400) Subject: LP#1755625 - Webstaff Patron Edit Multiple Email X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=163946dcea3c7c6c9235e54df2baf3c71bd0aa3f;p=working%2FEvergreen.git LP#1755625 - Webstaff Patron Edit Multiple Email This patch works around the fact that AngularJS binding doesn't seem to work well with multiple email addresses (aka comma-separated email list) in html5 input elements, even with the 'multiple' attribute. This custom regex accepts RFC6068-like email address lists. Also misc regctl fix. Signed-off by: Cesar Velez --- diff --git a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 index fa94d7974c..5364fdca8a 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_edit.tt2 @@ -113,13 +113,15 @@ MACRO draw_form_input(cls, field, path, type, disable) BLOCK; %]
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js index 49b0dd6e63..329f94b899 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js @@ -652,7 +652,7 @@ angular.module('egCoreMod') service.existing_patron = current; var patron = egCore.idl.toHash(current); - + patron.classname = "au"; patron.home_ou = egCore.org.get(patron.home_ou.id); patron.expire_date = new Date(Date.parse(patron.expire_date)); patron.dob = service.parse_dob(patron.dob);