BUG 6877 the error was fixed
The main problam was that the missing report_to users was not handling correctly but now it work fine
This commit is contained in:
@@ -321,6 +321,7 @@ class Derivation
|
||||
else {
|
||||
$oCriteria = new Criteria();
|
||||
$oCriteria->add(UsersPeer::USR_UID, $aUsers);
|
||||
var_dump(UsersPeer::doCount($oCriteria));
|
||||
if (UsersPeer::doCount($oCriteria) < 1) {
|
||||
return null;
|
||||
}
|
||||
@@ -417,23 +418,17 @@ class Derivation
|
||||
$userFields['USR_LASTNAME'] = '';
|
||||
$userFields['USR_EMAIL'] = '';
|
||||
|
||||
//look for USR_REPORTS_TO to this user
|
||||
//get the report_to user & its full info
|
||||
$useruid = $this->getDenpendentUser($tasInfo['USER_UID']);
|
||||
if ( isset ( $useruid ) ) {
|
||||
if ($useruid != '') {
|
||||
$value = $useruid;
|
||||
$userFields = $this->getUsersFullNameFromArray ($value);
|
||||
if (is_null($userFields)) {
|
||||
//throw ( new Exception("The current user does not have a valid Reports To user. Please contact administrator.") ) ;
|
||||
}
|
||||
}
|
||||
else {
|
||||
//throw ( new Exception("The current user does not have a valid Reports To user. Please contact administrator.") ) ;
|
||||
}
|
||||
|
||||
if (isset($useruid) && $useruid != '') {
|
||||
$userFields = $this->getUsersFullNameFromArray($useruid);
|
||||
}
|
||||
|
||||
// if there is no report_to user info, throw an exception indicating this
|
||||
if (!isset($userFields) || $userFields['USR_UID'] == '') {
|
||||
throw ( new Exception("The current user does not have a valid Reports To user. Please contact administrator.") ) ;
|
||||
}
|
||||
else
|
||||
$userFields = "ERROR";
|
||||
//throw ( new Exception("The current user does not have a valid Reports To user. Please contact administrator.") ) ;
|
||||
break;
|
||||
|
||||
case 'SELF_SERVICE' :
|
||||
|
||||
@@ -963,9 +963,9 @@
|
||||
//Add content content step - End
|
||||
}
|
||||
catch ( Exception $e ) {
|
||||
G::SendTemporalMessage($e->getMessage(), 'error', 'string', 3, 100);
|
||||
G::SendTemporalMessage(G::LoadTranslation('ID_PROCESS_DEF_PROBLEM'), 'error', 'string', 3, 100);
|
||||
$aMessage = array();
|
||||
$aMessage['MESSAGE'] = G::LoadTranslation('ID_PROCESS_DEF_PROBLEM').'<br/>'.G::LoadTranslation('ID_CONTACT_ADMIN');
|
||||
$aMessage['MESSAGE'] = $e->getMessage();
|
||||
$G_PUBLISH = new Publisher;
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
||||
G::RenderPage( 'publish', 'blank' );
|
||||
|
||||
Reference in New Issue
Block a user