--- loncom/homework/structuretags.pm 2006/07/27 20:47:03 1.362 +++ loncom/homework/structuretags.pm 2006/08/10 21:21:42 1.363 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.362 2006/07/27 20:47:03 albertel Exp $ +# $Id: structuretags.pm,v 1.363 2006/08/10 21:21:42 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -593,7 +593,6 @@ sub start_problem { $Apache::lonhomework::scantronmode=1; } - &initialize_storage(); if ($target ne 'analyze') { if ($target eq 'web') { &Apache::lonhomework::showhash(%Apache::lonhomework::history); @@ -618,6 +617,8 @@ sub start_problem { } $Apache::lonhomework::default_type = $Apache::lonhomework::type; + &initialize_storage(); + #added vars to the scripting enviroment my $expression='$external::part=\''.$Apache::inputtags::part.'\';'; $expression.='$external::type=\''.$Apache::lonhomework::type.'\';';