HOR-2036-A "Batch reassignment endpoint response"
This commit is contained in:
@@ -2970,7 +2970,7 @@ class Cases
|
|||||||
//Current users of OPEN DEL_INDEX thread
|
//Current users of OPEN DEL_INDEX thread
|
||||||
$aCurUser = $appDelegation->getCurrentUsers($val['APP_UID'], $val['DEL_INDEX']);
|
$aCurUser = $appDelegation->getCurrentUsers($val['APP_UID'], $val['DEL_INDEX']);
|
||||||
if (!empty($aCurUser)) {
|
if (!empty($aCurUser)) {
|
||||||
foreach ($aCurUser as $key => $value) {
|
foreach ($aCurUser as $keyAux => $value) {
|
||||||
if ($value === $data['usr_uid_target']) {
|
if ($value === $data['usr_uid_target']) {
|
||||||
$flagReassign = false;
|
$flagReassign = false;
|
||||||
$result = 1;
|
$result = 1;
|
||||||
@@ -2980,14 +2980,15 @@ class Cases
|
|||||||
//DEL_INDEX is CLOSED
|
//DEL_INDEX is CLOSED
|
||||||
$dataResponse['cases'][$key]['result'] = 0;
|
$dataResponse['cases'][$key]['result'] = 0;
|
||||||
$dataResponse['cases'][$key]['status'] = \G::LoadTranslation('ID_REASSIGNMENT_ERROR');
|
$dataResponse['cases'][$key]['status'] = \G::LoadTranslation('ID_REASSIGNMENT_ERROR');
|
||||||
|
$flagReassign = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($flagReassign) {
|
if ($flagReassign) {
|
||||||
$reassigned = $oCases->reassignCase($val['APP_UID'], $val['DEL_INDEX'], $usrUid, $data['usr_uid_target']);
|
$reassigned = $oCases->reassignCase($val['APP_UID'], $val['DEL_INDEX'], $usrUid, $data['usr_uid_target']);
|
||||||
$result = $reassigned ? 1 : 0;
|
$result = $reassigned ? 1 : 0;
|
||||||
|
$dataResponse['cases'][$key]['status'] = 'SUCCESS';
|
||||||
}
|
}
|
||||||
$dataResponse['cases'][$key]['result'] = $result;
|
$dataResponse['cases'][$key]['result'] = $result;
|
||||||
$dataResponse['cases'][$key]['status'] = 'SUCCESS';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
unset($dataResponse['usr_uid_target']);
|
unset($dataResponse['usr_uid_target']);
|
||||||
|
|||||||
Reference in New Issue
Block a user