]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: do not overwrite the output if NodeID exists
authorAlexander Piskun <13381981+bigcat88@users.noreply.github.com>
Sat, 13 Jul 2024 08:49:53 +0000 (11:49 +0300)
committerMarcel Klehr <mklehr@gmx.net>
Wed, 17 Jul 2024 11:55:55 +0000 (13:55 +0200)
Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
lib/private/TaskProcessing/Manager.php

index 1158c4a8519cf81ae1431901f74fd67bff09fe29..c5ddbb31dc34fe876f5bc55b2f00f1daa214c43f 100644 (file)
@@ -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);