HOR-502 Groups>assigning users to groups in Windows only assigns a single user
+ Se propago el error al UI y se registra en el log de errores.
This commit is contained in:
@@ -91,6 +91,17 @@ class Users extends BaseUsers
|
|||||||
throw (new Exception(G::LoadTranslation("ID_USER_UID_DOESNT_EXIST", SYS_LANG, array("USR_UID" => $UsrUid))));
|
throw (new Exception(G::LoadTranslation("ID_USER_UID_DOESNT_EXIST", SYS_LANG, array("USR_UID" => $UsrUid))));
|
||||||
}
|
}
|
||||||
} catch (PropelException $e) {
|
} 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
|
//capture invalid birthday date and replace by null
|
||||||
$msg = $e->getMessage();
|
$msg = $e->getMessage();
|
||||||
if (strpos( 'Unable to parse value of [usr_birthday]', $msg ) != - 1) {
|
if (strpos( 'Unable to parse value of [usr_birthday]', $msg ) != - 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user