Bug #4049 - Gradebook: Category names with a dot in them don't work correctly

This commit is contained in:
skodak
2005-11-15 21:40:18 +00:00
parent 9c9d5ae18f
commit c8a38c86ce
+1 -1
View File
@@ -2141,7 +2141,7 @@ function grade_set_grade_weights() {
$categories = get_records('grade_category', 'courseid', $course->id);
if ($categories) {
foreach ($categories as $category) {
$form_catname = str_replace(' ', '_', $category->name);
$form_catname = preg_replace('/[.| ]/', '_', $category->name);
$submitted_category = optional_param($form_catname);
if (is_numeric($submitted_category)) {