diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2023-07-31 16:35:35 +0000 |
|---|---|---|
| committer | Moritz Strohm <strohm@data-quest.de> | 2023-07-31 16:35:35 +0000 |
| commit | 34b0819462e74aafb6c1c6f7fb30eb6a939345d8 (patch) | |
| tree | 1764b49af7218a0a1cf5f5c1b44e0737292e1338 /app/controllers/file.php | |
| parent | bba85152ff89fb0347449c287017b6c1e07f420c (diff) | |
file/choose_destination: get file-IDs with Request::getArray instead of Request::optionArray, re #2990
Merge request studip/studip!2004
Diffstat (limited to 'app/controllers/file.php')
| -rw-r--r-- | app/controllers/file.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/file.php b/app/controllers/file.php index 4001262..f30404f 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 { |
