]> 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:49:50 +0000 (09:49 -0500)
commit920028d5ba34a07e5088519624896ce7b9750584
tree98af0a478bbce6fe7871cba6338aa1720a37128f
parentb1494fbba30ec4550c0dcf7b3c9d893e4037c8c5
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