Permalink
Browse files

Revert "MDL-31000 Respect sortorder of repositories when displaying t…

…he filepicker"

This reverts commit ce40b66.
  • Loading branch information...
1 parent efabe26 commit 7984be4a133071719f1a8445860a9591ae992d81 Sam Hemelryk committed Jan 9, 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[] = $meta;
+ $return->repositories[$repository->id] = $meta;
}
return $return;
}

0 comments on commit 7984be4

Please sign in to comment.