--- loncom/homework/structuretags.pm 2003/03/14 23:27:19 1.144.2.1 +++ loncom/homework/structuretags.pm 2003/02/07 21:50:12 1.145 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.144.2.1 2003/03/14 23:27:19 albertel Exp $ +# $Id: structuretags.pm,v 1.145 2003/02/07 21:50:12 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -252,7 +252,6 @@ sub start_problem { $Apache::inputtags::part='0'; @Apache::inputtags::responselist = (); @Apache::inputtags::previous=(); - @Apache::inputtags::previous_version=(); if ($target ne 'analyze') { &initialize_storage(); if ($target eq 'web') { @@ -451,6 +450,10 @@ sub end_problem { &Apache::lonhomework::showhash(%Apache::lonhomework::results); &finalize_storage(); } + if ($target eq 'answer' && ($ENV{'request.state'} eq 'construct') ) { + $result.=''; #normally we get it from xmlend, but in CSTR + # we always show answer mode too. + } } elsif ($target eq 'meta') { if ($Apache::inputtags::part eq '0') { $result=&Apache::response::mandatory_part_meta; @@ -662,7 +665,6 @@ sub start_part { $Apache::inputtags::part=$id; @Apache::inputtags::responselist = (); @Apache::inputtags::previous=(); - @Apache::inputtags::previous_version=(); if ($target eq 'meta') { return &Apache::response::mandatory_part_meta; } elsif ($target eq 'web' || $target eq 'grade' || $target eq 'answer' || $target eq 'tex') {