BUG 10989: "PMFNewCaseImpersonate definition is incomplete"
Error: There were no parameter to set which starting task to select. Sol: Adding a optional paramater to the newCaseImpersonate function. plus code style changes.
This commit is contained in:
@@ -1862,8 +1862,8 @@ class wsBase
|
||||
$aTasks = $processes->getStartingTaskForUser( $processId, null );
|
||||
foreach ($aTasks as $task) {
|
||||
if ($task['TAS_UID'] == $taskId) {
|
||||
$arrayTask[0]['TAS_UID'] = $taskId;
|
||||
$numTasks = 1;
|
||||
$arrayTask[0]['TAS_UID'] = $taskId;
|
||||
$numTasks = 1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -1875,7 +1875,7 @@ class wsBase
|
||||
$case = $oCase->startCase( $arrayTask[0]['TAS_UID'], $userId );
|
||||
$caseId = $case['APPLICATION'];
|
||||
$caseNumber = $case['CASE_NUMBER'];
|
||||
|
||||
|
||||
$oldFields = $oCase->loadCase( $caseId );
|
||||
|
||||
$oldFields['APP_DATA'] = array_merge( $oldFields['APP_DATA'], $Fields );
|
||||
|
||||
Reference in New Issue
Block a user