mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Revert "MDL-31000 Respect sortorder of repositories when displaying the filepicker"
This change was reverted because the array keys need to be the id, existing code relies on this.
This reverts commit ef72c7942e
.
This commit is contained in:
parent
7d1655a580
commit
b098581488
1 changed files with 1 additions and 1 deletions
|
@ -2146,7 +2146,7 @@ function initialise_filepicker($args) {
|
|||
$return->return_types = $args->return_types;
|
||||
foreach ($repositories as $repository) {
|
||||
$meta = $repository->get_meta();
|
||||
$return->repositories[] = $meta;
|
||||
$return->repositories[$repository->id] = $meta;
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue