Skip to content

Commit

Permalink
Bug #4049 - Gradebook: Category names with a dot in them don't work c…
Browse files Browse the repository at this point in the history
…orrectly
  • Loading branch information
skodak committed Nov 15, 2005
1 parent 9c9d5ae commit c8a38c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grade/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit c8a38c8

Please sign in to comment.