BUG-11374 Process Supervisor unable to adhoc assign to self SOLVED
- No se podia reasigna un caso a un supervisor. - Se agrega la funcionalidad para que el supervisor aparesca en el listado de reasignacion. - Solo el supervisor se pude reasignar a si mismo el caso y no hacia otros supervisores.
This commit is contained in:
@@ -104,15 +104,15 @@ if (!$flagSupervisors) {
|
|||||||
$oCriteria->addAscendingOrderByColumn(UsersPeer::USR_FIRSTNAME);
|
$oCriteria->addAscendingOrderByColumn(UsersPeer::USR_FIRSTNAME);
|
||||||
$oDataset = ProcessUserPeer::doSelectRS($oCriteria);
|
$oDataset = ProcessUserPeer::doSelectRS($oCriteria);
|
||||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||||
$oDataset->next();
|
|
||||||
$flagSupervisors = false;
|
$flagSupervisors = false;
|
||||||
|
|
||||||
while ($aRow = $oDataset->getRow()) {
|
if ($oDataset->next()) {
|
||||||
|
$aRow = $oDataset->getRow();
|
||||||
$supervisors = G::getFormatUserList( $ConfEnv['format'], $aRow );
|
$supervisors = G::getFormatUserList( $ConfEnv['format'], $aRow );
|
||||||
$aUsersInvolved[] = array ('userUid' => $aRow['USR_UID'], 'userFullname' => $supervisors);
|
$aUsersInvolved[] = array ('userUid' => $aRow['USR_UID'], 'userFullname' => $supervisors);
|
||||||
$oDataset->next();
|
|
||||||
$flagSupervisors = true;
|
$flagSupervisors = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$flagSupervisors) {
|
if (!$flagSupervisors) {
|
||||||
// Groups
|
// Groups
|
||||||
$oCriteria = new Criteria('workflow');
|
$oCriteria = new Criteria('workflow');
|
||||||
@@ -135,13 +135,13 @@ if (!$flagSupervisors) {
|
|||||||
|
|
||||||
$oDataset = ProcessUserPeer::doSelectRS($oCriteria);
|
$oDataset = ProcessUserPeer::doSelectRS($oCriteria);
|
||||||
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
$oDataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||||
$oDataset->next();
|
|
||||||
|
|
||||||
while ($aRow = $oDataset->getRow()) {
|
if ($oDataset->next()) {
|
||||||
|
$aRow = $oDataset->getRow();
|
||||||
$supervisors = G::getFormatUserList( $ConfEnv['format'], $aRow );
|
$supervisors = G::getFormatUserList( $ConfEnv['format'], $aRow );
|
||||||
$aUsersInvolved[] = array ('userUid' => $aRow['USR_UID'], 'userFullname' => $supervisors);
|
$aUsersInvolved[] = array ('userUid' => $aRow['USR_UID'], 'userFullname' => $supervisors);
|
||||||
$oDataset->next();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user