--- loncom/homework/structuretags.pm 2011/10/06 03:23:44 1.465.2.14 +++ loncom/homework/structuretags.pm 2012/02/01 18:51:52 1.465.2.14.2.1 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.465.2.14 2011/10/06 03:23:44 raeburn Exp $ +# $Id: structuretags.pm,v 1.465.2.14.2.1 2012/02/01 18:51:52 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -945,6 +945,9 @@ sub reset_problem_globals { undef(%Apache::lonhomework::history); undef(%Apache::lonhomework::results); undef($Apache::inputtags::part); + if ($type eq 'Task') { + undef($Apache::inputtags::slot_name); + } #don't undef this, lonhomework.pm takes care of this, we use this to #detect if we try to do 2 problems in one file # undef($Apache::lonhomework::parsing_a_problem);