--- loncom/homework/structuretags.pm 2007/08/14 01:45:20 1.389 +++ loncom/homework/structuretags.pm 2007/08/18 00:31:35 1.391 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.389 2007/08/14 01:45:20 albertel Exp $ +# $Id: structuretags.pm,v 1.391 2007/08/18 00:31:35 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -157,6 +157,10 @@ function setSubmittedPart (part) { $body_args{'no_title'} = 1; $body_args{'force_register'} = 1; $body_args{'add_entries'} = \%add_entries; + if ($env{'environment.remote'} eq 'off' + && $env{'request.state'} eq 'construct') { + $body_args{'only_body'} = 1; + } } $body_args{'no_auto_mt_title'} = 1; my $page_start = &Apache::loncommon::start_page($name,$extra_head, @@ -644,7 +648,6 @@ sub start_problem { } if ($target ne 'analyze') { - if ($env{'request.state'} eq 'construct') { &set_problem_state('0'); } $Apache::lonhomework::type=&Apache::lonnet::EXT('resource.0.type'); if (($env{'request.state'} eq 'construct') && defined($env{'form.problemtype'})) {