fix: do not overwrite the output if NodeID exists

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/46368/head
Alexander Piskun 2 years ago committed by Marcel Klehr
parent 3937cccd4b
commit c1f2c76f44
  1. 7
      lib/private/TaskProcessing/Manager.php

@ -687,12 +687,7 @@ class Manager implements IManager {
if (!$isUsingFileIds) {
$output = $this->encapsulateOutputFileData($output, $outputShape, $optionalOutputShape);
} else {
$output = $this->validateOutputFileIds($output, $outputShape, $optionalOutputShape);
}
foreach ($output as $key => $value) {
if ($value instanceof Node) {
$output[$key] = $value->getId();
}
$this->validateOutputFileIds($output, $outputShape, $optionalOutputShape);
}
$task->setOutput($output);
$task->setProgress(1);

Loading…
Cancel
Save