--- loncom/homework/grades.pm 2003/09/09 18:46:28 1.136 +++ loncom/homework/grades.pm 2003/09/17 17:43:34 1.137 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.136 2003/09/09 18:46:28 www Exp $ +# $Id: grades.pm,v 1.137 2003/09/17 17:43:34 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2733,7 +2733,9 @@ LISTJAVASCRIPT $result.='
'."\n"; $result.=' Problems from: '."\n"; my ($titles,$symbx) = &getSymbMap($request); - my ($curpage,$type,$mapId) = ($symb =~ /(.*?\.(page|sequence))___(\d+)___/); + my ($curpage)=&Apache::lonnet::decode_symb($symb); my $ctr=0; foreach (@$titles) { my ($minder,$showtitle) = ($_ =~ /(\d+)\.(.*)/); @@ -3620,7 +3622,7 @@ sub handler { my ($tsymb,$tuname,$tudom,$tcrsid)= &Apache::lonnet::checkin($token); if ($tsymb) { - my ($map,$id,$url)=split(/\_\_\_/,$tsymb); + my ($map,$id,$url)=&Apache::lonnet::decode_symb($tsymb); if (&Apache::lonnet::allowed('mgr',$tcrsid)) { $request->print(&Apache::lonnet::ssi_body('/res/'.$url, ('grade_username' => $tuname,