Merged in caleeli/processmaker/HOR-502 (pull request #3909)

HOR-502
This commit is contained in:
Julio Cesar Laura Avendaño
2016-03-23 19:08:12 -04:00

View File

@@ -91,6 +91,17 @@ class Users extends BaseUsers
throw (new Exception(G::LoadTranslation("ID_USER_UID_DOESNT_EXIST", SYS_LANG, array("USR_UID" => $UsrUid))));
}
} catch (PropelException $e) {
if(empty($oRow)) {
error_log(\G::LoadTranslation('ID_CONTACT_ADMIN'));
error_log($e->getTraceAsString());
$oError = new \Exception(
\G::LoadTranslation('ID_ERROR_IN_SERVER').".\n"
.\G::LoadTranslation('ID_CONTACT_ADMIN'),
0,
$e
);
throw ($oError);
}
//capture invalid birthday date and replace by null
$msg = $e->getMessage();
if (strpos( 'Unable to parse value of [usr_birthday]', $msg ) != - 1) {