--- loncom/homework/grades.pm 2003/05/30 20:57:40 1.90 +++ 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.90 2003/05/30 20:57:40 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 .= ''.$uname.' '. $udom.' '. - $$fullname{$user}.' '; + $$fullname{$usercolon}.' '; 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 { ''.$awarded.' '; } } - $result .= ''."\n"; if ($updateflag) { $count++; &Apache::lonnet::cstore(\%newrecord,$symb,$ENV{'request.course.id'}, $udom,$uname); } + $result .= ''."\n"; } $result .= ''."\n". &show_grading_menu_form ($symb,$url); @@ -2659,8 +2661,7 @@ sub displayPage { if($curRes == $iterator->END_MAP) { $depth++; } if (ref($curRes) && $curRes->is_problem() && !$curRes->randomout) { - my $parts = ['0',@{$curRes->parts()}]; - &APache::lonnet::logthis("parts ".join(':',@$parts)); + my $parts = $curRes->parts(); my $title = $curRes->compTitle(); my $symbx = $curRes->symb(); $studentTable.=''.$question. @@ -2792,8 +2793,7 @@ sub updateGradeByPage { if($curRes == $iterator->END_MAP) { $depth++; } if (ref($curRes) && $curRes->is_problem() && !$curRes->randomout) { - my $parts = ['0',@{$curRes->parts()}]; - &APache::lonnet::logthis("parts ".join(':',@$parts)); + my $parts = $curRes->parts(); my $title = $curRes->compTitle(); my $symbx = $curRes->symb(); $studentTable.=''.$question.