]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1724725: Handle ident_type2 in Web Staff User Editor
authorJason Boyer <JBoyer@library.in.gov>
Thu, 19 Oct 2017 03:05:05 +0000 (22:05 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 8 Nov 2017 14:48:25 +0000 (09:48 -0500)
commit6a31ee55a0509b28662a5793f625b6fd30d5bedd
tree61405142cd2c21eb74002df825a274d4617c4319
parent52156bddd6bfcdd6b97a1a3123580a252793f59e
LP1724725: Handle ident_type2 in Web Staff User Editor

While it was fairly harmless to not be able to set an ident_type2
value in the webstaff editor, the way things worked out if a user
had one set from the XUL client or direct manipulation an attempt
to save such a user would crash the cstore backend.

To test
-------
[1] Use the patron editor to edit a patron that has a value set
    for ident_value2. Save a change, but note that nothing is
    displayed and that eventually an open-ils.cstore error is
    reported in the browser console.
[2] Apply the patch and repeat step 1. This time, the patron
    editor will display the secondary identification type field
    and allow you to save changes to the record.

Signed-off-by: Jason Boyer <JBoyer@library.in.gov>
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