making sure ident_type2 is null instead of ""
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 8 Aug 2006 22:15:58 +0000 (22:15 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 8 Aug 2006 22:15:58 +0000 (22:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5387 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue.js

index 47a9ae2..3fab888 100644 (file)
@@ -435,8 +435,11 @@ function uEditSaveUser(cloneme) {
 
        /* null is unique in the db, but '' is not */
        if( ! patron.ident_value() ) patron.ident_value(null);
+       if( ! patron.ident_type2() ) patron.ident_type2(null);
        if( ! patron.ident_value2() ) patron.ident_value2(null);
 
+       if(! patron.dob() ) patron.dob(null);
+
        var req = new Request(UPDATE_PATRON, SESSION, patron);
        req.alertEvent = false;
        req.send(true);