--- loncom/homework/structuretags.pm 2007/11/20 17:53:22 1.414 +++ loncom/homework/structuretags.pm 2008/01/14 14:32:14 1.415 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.414 2007/11/20 17:53:22 albertel Exp $ +# $Id: structuretags.pm,v 1.415 2008/01/14 14:32:14 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -754,7 +754,8 @@ sub start_problem { } if ($target ne 'analyze') { - $Apache::lonhomework::type=&Apache::lonnet::EXT('resource.0.type'); + my $type = &Apache::lonnet::EXT('resource.0.type'); + $Apache::lonhomework::type=$type; if (($env{'request.state'} eq 'construct') && $env{'form.problemtype'} =~ /\S/) { $Apache::lonhomework::type=$env{'form.problemtype'};