Skip to content

Commit d201ab8

Browse files
lukasdotcombackportbot[bot]
authored andcommitted
fix: Output shape validation will delete keys when there is a list of files
Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
1 parent ce546d4 commit d201ab8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/TaskProcessing/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ public function encapsulateOutputFileData(array $output, ...$specs): array {
13321332
$file = $folder->newFile(time() . '-' . rand(1, 100000), $output[$key]);
13331333
$newOutput[$key] = $file->getId(); // polymorphic call to SimpleFile
13341334
} else {
1335-
$newOutput = [];
1335+
$newOutput[$key] = [];
13361336
foreach ($output[$key] as $item) {
13371337
/** @var SimpleFile $file */
13381338
$file = $folder->newFile(time() . '-' . rand(1, 100000), $item);

0 commit comments

Comments
 (0)