LP#1714056 - fix for webstaff patron registration not requiring DOB
authorCesar Velez <cesar.velez@equinoxinitiative.org>
Wed, 4 Oct 2017 14:49:02 +0000 (10:49 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 17 Oct 2017 17:47:06 +0000 (13:47 -0400)
For some reason the ng-required attribute was not on the dob input
control. Setting 'ui.patron.edit.au.dob.require' should now work
as intended.

Signed-off by: Cesar Velez <cesar.velez@equinoxinitiative.org>

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/staff/circ/patron/t_edit.tt2

index 0ac7218..23977d9 100644 (file)
@@ -267,7 +267,8 @@ within the "form" by name for validation.
 <div class="row reg-field-row" ng-show="show_field('au.dob')">
   [% draw_field_label('au', 'dob') %]
   <div class="col-md-3 reg-field-input">
-    <eg-date-input 
+    <eg-date-input
+      ng-required="field_required('au', 'dob')" 
       ng-model="patron.dob"
       ng-blur="handle_field_changed(patron, 'dob')">
     </eg-date-input>