diff --git a/lib/WeBWorK/ContentGenerator/Instructor/Stats.pm b/lib/WeBWorK/ContentGenerator/Instructor/Stats.pm index 91bdc75eb9..efd891303f 100644 --- a/lib/WeBWorK/ContentGenerator/Instructor/Stats.pm +++ b/lib/WeBWorK/ContentGenerator/Instructor/Stats.pm @@ -170,7 +170,6 @@ sub set_stats ($c) { # Only count top level problems for Jitar sets. my $num_problems = $isJitarSet ? scalar(keys %topLevelProblems) : scalar(@problems); - my $filter = $c->param('filter'); my ($students, $filters) = $c->filter_students; for my $studentRecord (@$students) { my $student = $studentRecord->user_id; @@ -362,7 +361,6 @@ sub problem_stats ($c) { my $db = $c->db; my $ce = $c->ce; my $user = $c->param('user'); - my $filter = $c->param('filter'); my $courseID = $c->stash('courseID'); my $problemID = $c->stash('problemID'); diff --git a/templates/ContentGenerator/Instructor/StudentProgress/set_progress.html.ep b/templates/ContentGenerator/Instructor/StudentProgress/set_progress.html.ep index 3f71ede160..2c856bc55a 100644 --- a/templates/ContentGenerator/Instructor/StudentProgress/set_progress.html.ep +++ b/templates/ContentGenerator/Instructor/StudentProgress/set_progress.html.ep @@ -89,8 +89,8 @@ - % if (param('filter')) { - <%= hidden_field filter => param('filter') =%> + % if ($filter) { + <%= hidden_field filter => $filter =%> % } % if ($primary_sort_method) { <%= hidden_field primary_sort => $primary_sort_method =%>