--- loncom/homework/bridgetask.pm 2006/05/09 19:01:19 1.146 +++ loncom/homework/bridgetask.pm 2006/05/12 05:18:34 1.149 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.146 2006/05/09 19:01:19 albertel Exp $ +# $Id: bridgetask.pm,v 1.149 2006/05/12 05:18:34 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -223,6 +223,12 @@ sub add_request_another_attempt_button { if (!$text) { $text="Request another attempt"; } my $result; my $symb=&Apache::lonnet::symbread(); + # not a slot access based resource + my $useslots = &Apache::lonnet::EXT("resource.0.useslots",$symb); + if ($useslots =~ /^\s*no\s*$/i) { + return ''; + } + my ($slot_name,$slot)=&Apache::slotrequest::check_for_reservation($symb); my $action='get_reservation'; if ($slot_name) { @@ -395,7 +401,8 @@ sub start_Task { } if ($target eq 'web' && $env{'request.state'} ne 'construct') { - if ($Apache::lonhomework::modifygrades) { + if ($Apache::lonhomework::queuegrade + || $Apache::lonhomework::modifygrades) { $result.='