From 3937cccd4b564c77620f6fc001b1d623d5e15c1b Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Tue, 9 Jul 2024 13:35:46 +0200 Subject: [PATCH] fix(TaskProcessing\Manager#setTaskResult): Replace files contents with ID instead of File object Signed-off-by: Marcel Klehr --- lib/private/TaskProcessing/Manager.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/private/TaskProcessing/Manager.php b/lib/private/TaskProcessing/Manager.php index 4ec8dd9cad2..1158c4a8519 100644 --- a/lib/private/TaskProcessing/Manager.php +++ b/lib/private/TaskProcessing/Manager.php @@ -689,6 +689,11 @@ class Manager implements IManager { } else { $output = $this->validateOutputFileIds($output, $outputShape, $optionalOutputShape); } + foreach ($output as $key => $value) { + if ($value instanceof Node) { + $output[$key] = $value->getId(); + } + } $task->setOutput($output); $task->setProgress(1); $task->setStatus(Task::STATUS_SUCCESSFUL); -- 2.39.5