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:
ralph
2013-03-19 13:52:49 -04:00
parent 34c35397dd
commit 8bde064996

View File

@@ -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 );