Merged in bugfix/PMCORE-937 (pull request #7851)

PMCORE-937

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
Andrea Adamczyk
2021-03-26 16:10:59 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -246,7 +246,17 @@ class Ajax
|| in_array($appUid, $userAuthorization['objectPermissions']['REASSIGN_MY_CASES'])
) {
if (!AppDelay::isPaused($appUid, $index)) {
$subprocess = SubProcess::getSubProcessConfiguration(
$proUid,
$_SESSION['CURRENT_TASK']
);
if (empty($subprocess)) {
$options[] = ['text' => G::LoadTranslation('ID_REASSIGN'), 'fn' => 'getUsersToReassign'];
} else {
if ($subprocess['SP_SYNCHRONOUS'] == 0) {
$options[] = ['text' => G::LoadTranslation('ID_REASSIGN'), 'fn' => 'getUsersToReassign'];
}
}
}
}
break;