fixed password verification for existing users
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Sep 2006 17:00:01 +0000 (17:00 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 2 Sep 2006 17:00:01 +0000 (17:00 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5863 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/xul/staff_client/server/patron/ue.js
Evergreen/xul/staff_client/server/patron/ue_config.js

index 25e6d94..32796f4 100644 (file)
@@ -335,7 +335,6 @@ function uEditOnChange(field) {
        if(field.widget.onpostchange)
                field.widget.onpostchange(field, newval);
 
-
        uEditIterateFields(function(f) { uEditCheckValid(f); });
        uEditCheckErrors();
 }
index 1dd2244..f98ab7f 100644 (file)
@@ -159,6 +159,11 @@ function uEditDefineData(patron) {
                                        var pw1f = uEditFindFieldByWId('ue_password1');
                                        var pw1 = uEditNodeVal(pw1f);
                                        field.widget.regex = new RegExp('^'+pw1+'$');
+                                       if( pw1 ) field.required = true;
+                                       else {
+                                               if(!patron.isnew())
+                                                       field.required = false;
+                                       }
                                }
                        }
                },