mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-31000 Respect sortorder of repositories when displaying the filepicker
This commit is contained in:
parent
2117dcb591
commit
ef72c7942e
@ -2146,7 +2146,7 @@ function initialise_filepicker($args) {
|
||||
$return->return_types = $args->return_types;
|
||||
foreach ($repositories as $repository) {
|
||||
$meta = $repository->get_meta();
|
||||
$return->repositories[$repository->id] = $meta;
|
||||
$return->repositories[] = $meta;
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user