--- loncom/homework/grades.pm 2003/05/30 21:20:20 1.91 +++ loncom/homework/grades.pm 2003/05/30 21:33:15 1.92 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.91 2003/05/30 21:20:20 albertel Exp $ +# $Id: grades.pm,v 1.92 2003/05/30 21:33:15 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2038,13 +2038,15 @@ sub editgrades { for ($i=0; $i<$ENV{'form.total'}; $i++) { my $user = $ENV{'form.ctr'.$i}; - my ($uname,$udom)=split(/:/,$user); + my $usercolon = $user; + $usercolon =~s/_/:/; + my ($uname,$udom)=split(/_/,$user); my %newrecord; my $updateflag = 0; $result .= '<tr bgcolor="#ffffde"><td>'.$uname.' </td><td>'. $udom.' </td><td>'. - $$fullname{$user}.' </td>'; + $$fullname{$usercolon}.' </td>'; foreach (@partid) { my $old_aw = $ENV{'form.GD_'.$user.'_'.$_.'_awarded_s'}; my $old_part_pcr = $old_aw/($weight{$_} ne '0' ? $weight{$_}:1); @@ -2091,12 +2093,12 @@ sub editgrades { '<td align="center">'.$awarded.' </td>'; } } - $result .= '</tr>'."\n"; if ($updateflag) { $count++; &Apache::lonnet::cstore(\%newrecord,$symb,$ENV{'request.course.id'}, $udom,$uname); } + $result .= '</tr>'."\n"; } $result .= '</table></td></tr></table>'."\n". &show_grading_menu_form ($symb,$url);