--- loncom/homework/structuretags.pm 2006/06/20 03:33:55 1.357 +++ loncom/homework/structuretags.pm 2006/06/24 01:28:17 1.358 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.357 2006/06/20 03:33:55 albertel Exp $ +# $Id: structuretags.pm,v 1.358 2006/06/24 01:28:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -526,7 +526,9 @@ sub init_problem_globals { @Apache::structuretags::whileline=(); $Apache::lonhomework::scantronmode=0; undef($Apache::lonhomework::name); - + undef($Apache::lonhomework::default_type); + undef($Apache::lonhomework::type); + undef($Apache::lonhomework::problemstatus); } sub reset_problem_globals { @@ -538,6 +540,11 @@ sub reset_problem_globals { #detect if we try to do 2 problems in one file # undef($Apache::lonhomework::parsing_a_problem); undef($Apache::lonhomework::name); + undef($Apache::lonhomework::default_type); + undef($Apache::lonhomework::type); + undef($Apache::lonhomework::scantronmode); + undef($Apache::lonhomework::problemstatus); + undef($Apache::lonhomework::ignore_response_errors); } sub set_problem_state {