MDL-60579 user: Add missing case breaks

This commit is contained in:
Andrew Nicols
2017-11-09 09:07:34 +08:00
parent a997dc9da5
commit 762f8dc1db
+2
View File
@@ -320,12 +320,14 @@ class core_user_renderer extends plugin_renderer_base {
$val = get_string('numyear', 'moodle', 1);
$filteroptions += $this->format_filter_option(USER_FILTER_LAST_ACCESS, $criteria, $timestamp, $val);
}
break;
case USER_FILTER_ROLE:
$criteria = get_string('role');
if ($role = $DB->get_record('role', array('id' => $value))) {
$role = role_get_name($role);
$filteroptions += $this->format_filter_option(USER_FILTER_ROLE, $criteria, $value, $role);
}
break;
}
}
}