Merged in bugfix/PMCORE-4135 (pull request #8699)
PMCORE-4135 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
@@ -80,7 +80,6 @@ foreach ($_GET as $k => $v) {
|
|||||||
/**
|
/**
|
||||||
* @todo, the action over the case from Open Case, Case Link and jump to needs to work similar, we need to have a PRD
|
* @todo, the action over the case from Open Case, Case Link and jump to needs to work similar, we need to have a PRD
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$case = $caseInstance->loadCase($appUid, $delIndex);
|
$case = $caseInstance->loadCase($appUid, $delIndex);
|
||||||
$canClaimCase = false;
|
$canClaimCase = false;
|
||||||
$caseCanBeReview = false;
|
$caseCanBeReview = false;
|
||||||
@@ -96,7 +95,7 @@ if (isset($_GET['action'])) {
|
|||||||
break;
|
break;
|
||||||
case 'to_reassign': //Reassign
|
case 'to_reassign': //Reassign
|
||||||
// From reassign: Review if the user can be claim the case
|
// From reassign: Review if the user can be claim the case
|
||||||
if ($caseInstance->isSelfService($_SESSION['USER_LOGGED'], $case['TAS_UID'], $appUid)) {
|
if (empty($case['CURRENT_USER_UID']) && $caseInstance->isSelfService($_SESSION['USER_LOGGED'], $case['TAS_UID'], $appUid)) {
|
||||||
$canClaimCase = true;
|
$canClaimCase = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@@ -111,7 +110,7 @@ if (isset($_GET['action'])) {
|
|||||||
$caseCanBeReview = $proSupervisor->reviewCaseStatusForSupervisor($appUid, $delIndex);
|
$caseCanBeReview = $proSupervisor->reviewCaseStatusForSupervisor($appUid, $delIndex);
|
||||||
}
|
}
|
||||||
// From Unassigned: Review if the user can be claim the case
|
// From Unassigned: Review if the user can be claim the case
|
||||||
if ($caseInstance->isSelfService($_SESSION['USER_LOGGED'], $case['TAS_UID'], $appUid)) {
|
if (empty($case['CURRENT_USER_UID']) && $caseInstance->isSelfService($_SESSION['USER_LOGGED'], $case['TAS_UID'], $appUid)) {
|
||||||
$canClaimCase = true;
|
$canClaimCase = true;
|
||||||
}
|
}
|
||||||
// From Paused: Get the last index OPEN or CLOSED (by Paused cases)
|
// From Paused: Get the last index OPEN or CLOSED (by Paused cases)
|
||||||
|
|||||||
Reference in New Issue
Block a user