--- loncom/homework/grades.pm 2001/08/20 23:27:27 1.15 +++ loncom/homework/grades.pm 2001/10/05 21:51:14 1.16 @@ -18,11 +18,16 @@ sub moreinfo { $request->print("Unable to process request: $reason"); if ( $Apache::grades::viewgrades eq 'F' ) { $request->print('
'); } return ''; @@ -48,11 +53,16 @@ sub listStudents { if ( $Apache::grades::viewgrades eq 'F' ) { $request->print(''); } } @@ -211,7 +221,12 @@ sub submission { # if ($ENV{'form.student'} eq '') { &listStudents($request); return ''; } my ($uname,$udom) = &finduser($ENV{'form.student'}); if ($uname eq '') { &moreinfo($request,"Unable to find student"); return ''; } - my $symb=&Apache::lonnet::symbread($url); + my $symb; + if ($ENV{'form.symb'}) { + $symb=$ENV{'form.symb'}; + } else { + $symb=&Apache::lonnet::symbread($url); + } if ($symb eq '') { $request->print("Unable to handle ambiguous references:$url:."); return ''; } my $answer=&Apache::loncommon::get_previous_attempt($symb,$uname,$udom, $ENV{'request.course.id'}); @@ -245,8 +260,8 @@ sub viewgrades { #start the form $result = '