Permalink
Browse files

MDL-31000 Respect sortorder of repositories when displaying the filep…

…icker
  • Loading branch information...
1 parent a1d2463 commit ce40b669ccac9767d511e9302c399bcf27e9e4f4 @andrewnicols andrewnicols committed with Sam Hemelryk Jan 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/lib.php
View
@@ -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;
}

0 comments on commit ce40b66

Please sign in to comment.