--- loncom/homework/structuretags.pm 2016/04/04 17:24:18 1.548 +++ loncom/homework/structuretags.pm 2016/04/04 17:34:01 1.549 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.548 2016/04/04 17:24:18 raeburn Exp $ +# $Id: structuretags.pm,v 1.549 2016/04/04 17:34:01 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1605,8 +1605,9 @@ sub start_problem { } elsif (($env{'request.state'} ne "construct") && ($Apache::lonhomework::type eq 'randomizetry') && ($status eq 'CAN_ANSWER') && - ($env{'course.'.$env{'request.course.id'}.'.type'} ne 'Placement')) { -# "New Problem Variation Each Try" header suppressed for Placement Tests. + ($env{'course.'.$env{'request.course.id'}.'.type'} ne 'Placement') && + (!$env{'request.role.adv'})) { +# "New Problem Variation Each Try" header suppressed for Placement Tests, unless course personnel. my $reqtries = &Apache::lonnet::EXT("resource.$Apache::inputtags::part.randomizeontries"); my $problemstatus = &get_problem_status($Apache::inputtags::part); $form_tag_start.=&randomizetry_problem_header($problemstatus,$reqtries); @@ -1937,7 +1938,7 @@ sub end_problem { if (ref($navmap)) { my $hastries = &Apache::lonplacementtest::has_tries($symb,$navmap); # For Placement Tests test status is displayed if this is the last resource in the course -# and there are no tries left; +# and there are no tries left unless ($hastries) { if (&Apache::lonplacementtest::is_lastres($symb,$navmap)) { my ($score,$incomplete) =