]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1748006 Patron edit juv flag manual override
authorBill Erickson <berickxx@gmail.com>
Fri, 9 Feb 2018 19:27:05 +0000 (14:27 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 30 Apr 2018 19:32:08 +0000 (15:32 -0400)
commitf9c8e6ae4315871abc08179c137b8d199261e43c
treeed88e513a2ef2c46d8b860a0cf9a9201a5cae94b
parent0c3135c78913e9e55417012b5e84bb8f276c1c6f
LP#1748006 Patron edit juv flag manual override

Allow staff to manually override the patron juvenile flag value
regardless of patron DoB.

Patch removes the ng-blur handler for dob and expire_date, which fires
too aggressively.  The dob handler is replaced with a $watch handler, so
the new and old value can be compared.  No watch is applied to
expire_date, since no code is currently fired when it's changed.

Change the log level of the "field changed" message from log to debug.

To test:

[1] Open a patron in the web staff patron editor.
[2] Apply a juvenile birth date (less than 18 years by default).
[3] Confirm the juvenile flag is automatically activated (if it wasn't
    already).
[4] Confirm it's possible to un-check the juvenile flag and save the
    patron.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Cesar Velez <cesar.velez@equinoxinitiative.org>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/circ/patron/t_edit.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js