--- loncom/homework/grades.pm 2009/02/14 17:03:40 1.550 +++ loncom/homework/grades.pm 2009/02/18 07:06:12 1.552 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.550 2009/02/14 17:03:40 raeburn Exp $ +# $Id: grades.pm,v 1.552 2009/02/18 07:06:12 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -3426,7 +3426,7 @@ sub editgrades { if ($part !~ m/^\Q$partid\E/) { next;} if ($type eq 'awarded' || $type eq 'solved') { next; } my $display=&Apache::lonnet::metadata($url,$stores.'.display'); - $display =~ s/\[Part: (\w)+\]//; + $display =~ s/\[Part: \Q$part\E\]//; my $narrowtext = &mt('Tries'); $display =~ s/Number of Attempts/$narrowtext/; $header .= ''.&mt('Old').' '.$display.''. @@ -7302,7 +7302,7 @@ sub scantron_get_maxbubble { } } } - &Apache::lonnet::delenv('scantron\.'); + &Apache::lonnet::delenv('scantron.'); &save_bubble_lines(); $env{'form.scantron_maxbubble'} = @@ -7564,7 +7564,7 @@ SCANTRONFORM if (&Apache::loncommon::connection_aborted($r)) { last; } } continue { &Apache::lonxml::clear_problem_counter(); - &Apache::lonnet::delenv('scantron\.'); + &Apache::lonnet::delenv('scantron.'); } &Apache::lonhtmlcommon::Close_PrgWin($r,\%prog_state); &Apache::lonnet::remove_lock($lock);