--- loncom/homework/structuretags.pm 2005/09/20 06:40:30 1.300 +++ loncom/homework/structuretags.pm 2005/09/23 18:39:55 1.301 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.300 2005/09/20 06:40:30 albertel Exp $ +# $Id: structuretags.pm,v 1.301 2005/09/23 18:39:55 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -511,7 +511,6 @@ sub start_problem { defined($env{'form.problemtype'})) { $Apache::lonhomework::type=$env{'form.problemtype'}; } - $Apache::lonhomework::default_type = $Apache::lonhomework::type; &Apache::lonxml::debug("Found this to be of type :$Apache::ltonhomework::type:"); } if ($Apache::lonhomework::type eq '' ) { @@ -524,6 +523,7 @@ sub start_problem { &Apache::lonxml::debug("Using default type, problem, :$uri:"); } } + $Apache::lonhomework::default_type = $Apache::lonhomework::type; #added vars to the scripting enviroment my $expression='$external::part=\''.$Apache::inputtags::part.'\';';