Skip to content
Snippets Groups Projects
Commit 34b08194 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

file/choose_destination: get file-IDs with Request::getArray instead of...

file/choose_destination: get file-IDs with Request::getArray instead of Request::optionArray, re #2990

Merge request studip/studip!2004
parent bba85152
No related branches found
No related tags found
No related merge requests found
...@@ -704,13 +704,12 @@ class FileController extends AuthenticatedController ...@@ -704,13 +704,12 @@ class FileController extends AuthenticatedController
if (empty($fileref_id)) { if (empty($fileref_id)) {
$fileref_id = Request::getArray('fileref_id'); $fileref_id = Request::getArray('fileref_id');
} elseif ($fileref_id === 'bulk') { } elseif ($fileref_id === 'bulk') {
$fileref_id = Request::optionArray('ids'); $fileref_id = Request::getArray('ids');
} }
$this->copymode = $copymode; $this->copymode = $copymode;
$this->fileref_id = $fileref_id; $this->fileref_id = $fileref_id;
if (Request::get("from_plugin")) { if (Request::get("from_plugin")) {
if (is_array($fileref_id)) { if (is_array($fileref_id)) {
$file_id = $fileref_id[0]; $file_id = $fileref_id[0];
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment