@@ -1229,14 +1229,15 @@ private function loadPatronInfoFromDB($patronId, $password, $suppliedUsernameOrB
1229
1229
$ user ->ils_password = $ password ;
1230
1230
$ user ->email = $ userFromDb ['email ' ];
1231
1231
$ user ->patronType = $ userFromDb ['categorycode ' ];
1232
- $ user ->dateOfBirth = $ userFromDb ['dateofbirth ' ];
1233
1232
1234
1233
$ user ->_address1 = trim ($ userFromDb ['streetnumber ' ] . ' ' . $ userFromDb ['address ' ]);
1235
1234
$ user ->_address2 = $ userFromDb ['address2 ' ];
1236
1235
$ user ->_city = $ userFromDb ['city ' ];
1237
1236
$ user ->_state = $ userFromDb ['state ' ];
1238
1237
$ user ->_zip = $ userFromDb ['zipcode ' ];
1239
1238
$ user ->phone = $ userFromDb ['phone ' ];
1239
+ $ user ->_dateOfBirth = $ userFromDb ['dateofbirth ' ];
1240
+
1240
1241
1241
1242
$ user ->_web_note = $ userFromDb ['opacnote ' ];
1242
1243
@@ -1341,7 +1342,7 @@ private function loadPatronInfoFromDB($patronId, $password, $suppliedUsernameOrB
1341
1342
1342
1343
function loadContactInformation (User $ user ) {
1343
1344
$ this ->initDatabaseConnection ();
1344
- $ sql = "SELECT borrowernumber, cardnumber, surname, firstname, streetnumber, streettype, address, address2, city, state, zipcode, country, email, phone, mobile, categorycode, dateexpiry, password, userid, branchcode, opacnote, privacy from borrowers where borrowernumber = ' " . mysqli_escape_string ($ this ->dbConnection , $ user ->unique_ils_id ) . "'; " ;
1345
+ $ sql = "SELECT borrowernumber, cardnumber, surname, firstname, streetnumber, streettype, address, address2, city, state, zipcode, country, email, phone, mobile, categorycode, dateexpiry, password, userid, branchcode, opacnote, privacy, dateofbirth from borrowers where borrowernumber = ' " . mysqli_escape_string ($ this ->dbConnection , $ user ->unique_ils_id ) . "'; " ;
1345
1346
1346
1347
$ lookupUserResult = mysqli_query ($ this ->dbConnection , $ sql , MYSQLI_USE_RESULT );
1347
1348
if ($ lookupUserResult ) {
@@ -1358,6 +1359,7 @@ function loadContactInformation(User $user) {
1358
1359
$ user ->_state = $ userFromDb ['state ' ];
1359
1360
$ user ->_zip = $ userFromDb ['zipcode ' ];
1360
1361
$ user ->phone = $ userFromDb ['phone ' ];
1362
+ $ user ->_dateOfBirth = $ userFromDb ['dateofbirth ' ];
1361
1363
}
1362
1364
}
1363
1365
0 commit comments