Skip to content

Commit

Permalink
NOMDL Fixed MNet filter setting in bulk user filter form
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Jul 28, 2010
1 parent ad9432a commit 6fc35ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions user/filters/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ function get_field($fieldname, $advanced) {
} else {
$choices[$host->id] = $host->name.' ('.$host->wwwroot.')';
}
$choices[$host->id] = $host->name.' ('.$host->wwwroot.')';
}
if ($usedhosts = $DB->get_fieldset_sql("SELECT DISTINCT mnethostid FROM {user} WHERE deleted=0")) {
foreach ($usedhosts as $hostid) {
Expand All @@ -150,7 +149,7 @@ function get_field($fieldname, $advanced) {
if (count($choices) < 2) {
return null; // filter not needed
}
return new user_filter_simpleselect('mnethostid', 'mnethostid', $advanced, 'mnethostid', $choices);
return new user_filter_simpleselect('mnethostid', get_string('mnetidprovider', 'mnet'), $advanced, 'mnethostid', $choices);

default: return null;
}
Expand Down

0 comments on commit 6fc35ad

Please sign in to comment.