--- loncom/homework/bridgetask.pm 2006/06/23 22:32:39 1.178 +++ loncom/homework/bridgetask.pm 2006/06/24 01:28:17 1.179 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.178 2006/06/23 22:32:39 albertel Exp $ +# $Id: bridgetask.pm,v 1.179 2006/06/24 01:28:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -530,8 +530,8 @@ sub start_Task { my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; my ($status,$accessmsg,$slot); + &Apache::structuretags::init_problem_globals('Task'); if ($target ne 'webgrade') { - &Apache::structuretags::init_problem_globals('Task'); &Apache::structuretags::initialize_storage(); &Apache::lonhomework::showhash(%Apache::lonhomework::history); if ($env{'request.state'} eq 'construct') { @@ -1221,6 +1221,7 @@ DONEBUTTON $result.=&Apache::response::meta_stores_write('status','string', 'Bridge Task Status'); } + &Apache::structuretags::reset_problem_globals('Task'); undef($Apache::lonhomework::parsing_a_task); return $result; }