From 34b0819462e74aafb6c1c6f7fb30eb6a939345d8 Mon Sep 17 00:00:00 2001
From: Moritz Strohm <strohm@data-quest.de>
Date: Mon, 31 Jul 2023 16:35:35 +0000
Subject: [PATCH] file/choose_destination: get file-IDs with Request::getArray
 instead of Request::optionArray, re #2990

Merge request studip/studip!2004
---
 app/controllers/file.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/app/controllers/file.php b/app/controllers/file.php
index 40012620430..f30404f3f62 100644
--- a/app/controllers/file.php
+++ b/app/controllers/file.php
@@ -704,13 +704,12 @@ class FileController extends AuthenticatedController
         if (empty($fileref_id)) {
             $fileref_id = Request::getArray('fileref_id');
         } elseif ($fileref_id === 'bulk') {
-            $fileref_id = Request::optionArray('ids');
+            $fileref_id = Request::getArray('ids');
         }
         $this->copymode = $copymode;
         $this->fileref_id = $fileref_id;
 
         if (Request::get("from_plugin")) {
-
             if (is_array($fileref_id)) {
                 $file_id = $fileref_id[0];
             } else {
-- 
GitLab