From a5d034934bc73b3e21cd968eeba75dba92b7eb68 Mon Sep 17 00:00:00 2001 From: davidcallizaya Date: Tue, 22 Mar 2016 18:20:06 -0400 Subject: [PATCH] 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. --- workflow/engine/classes/model/Users.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/workflow/engine/classes/model/Users.php b/workflow/engine/classes/model/Users.php index e73b5a2c6..3b0131e1d 100755 --- a/workflow/engine/classes/model/Users.php +++ b/workflow/engine/classes/model/Users.php @@ -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) {