]> 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:44:38 +0000 (09:44 -0500)
commita0c569a4401f81a19022e0368369149d827ac18e
tree5a807c4982df69c98f226bfe0b4019b856f6af66
parentcfb7979c77c1d5184fc2b3660580022c8cbdd98d
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