--- loncom/homework/structuretags.pm 2003/09/19 21:38:15 1.211 +++ loncom/homework/structuretags.pm 2003/10/08 16:35:04 1.213 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.211 2003/09/19 21:38:15 albertel Exp $ +# $Id: structuretags.pm,v 1.213 2003/10/08 16:35:04 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -355,7 +355,7 @@ sub start_problem { } #added vars to the scripting enviroment - my $expression='$external::part='.$Apache::inputtags::part.';'; + my $expression='$external::part=\''.$Apache::inputtags::part.'\';'; &Apache::run::run($expression,$safeeval); my $status; my $accessmsg; @@ -1004,7 +1004,9 @@ sub end_part { } elsif (($target eq 'web' || $target eq 'tex') && !$hidden ) { my $gradestatus=&Apache::inputtags::gradestatus($Apache::inputtags::part, $target); - if ($Apache::lonhomework::type eq 'exam') {$gradestatus='';} + if ($Apache::lonhomework::type eq 'exam' && $target eq 'tex') { + $gradestatus=''; + } $result=$gradestatus; } elsif ($target eq 'edit') { $result=&Apache::edit::end_table();