PMCORE-2892-A
This commit is contained in:
@@ -265,24 +265,11 @@ class Ajax
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_SESSION["TASK"] != "" && $_SESSION["TASK"] != "-1") {
|
/**
|
||||||
$task = new Task();
|
* The menu ID_ADHOC_ASSIGNMENT was deprecated because it's possible to reassign a case from the options reassign
|
||||||
$tasksInParallel = explode('|', $_SESSION['TASK']);
|
*
|
||||||
$tasksInParallel = array_filter($tasksInParallel, function ($value) {
|
* @link https://wiki.processmaker.com/3.6/Cases/Actions#Reassign_2
|
||||||
return !empty($value);
|
*/
|
||||||
});
|
|
||||||
$nTasksInParallel = count($tasksInParallel);
|
|
||||||
|
|
||||||
if ($nTasksInParallel > 1) {
|
|
||||||
$taskProperties = $task->load($tasksInParallel[$nTasksInParallel - 1]);
|
|
||||||
} else {
|
|
||||||
$taskProperties = $task->load($_SESSION['TASK']);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($taskProperties['TAS_TYPE'] == 'ADHOC') {
|
|
||||||
$options[] = ['text' => G::LoadTranslation('ID_ADHOC_ASSIGNMENT'), 'fn' => 'adhocAssignmentUsers'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $options;
|
return $options;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user