--- loncom/homework/structuretags.pm 2002/11/06 22:58:36 1.131 +++ loncom/homework/structuretags.pm 2002/11/06 23:05:02 1.132 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.131 2002/11/06 22:58:36 albertel Exp $ +# $Id: structuretags.pm,v 1.132 2002/11/06 23:05:02 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -290,10 +290,11 @@ sub start_problem { my $expression='$external::datestatus="'.$status.'";'; $expression.='$external::gradestatus="'.$Apache::lonhomework::history{"resource.0.solved"}.'";'; &Apache::run::run($expression,$safeeval); + &Apache::lonxml::debug("Got $status"); if (( $status eq 'CLOSED' ) || ( $status eq 'UNCHECKEDOUT') || ( $status eq 'BANNED')) { - my $bodytext=&Apache::lonxml::get_all_text("/problem",$$parser[$#$parser]); + my $bodytext=&Apache::lonxml::get_all_text("/problem",$parser); if ( $target eq "web" ) { $result.= $head_tag_start.''; my $msg=$body_tag_start.