--- loncom/homework/bridgetask.pm 2005/09/29 19:18:37 1.55
+++ loncom/homework/bridgetask.pm 2005/09/30 20:34:53 1.57
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.55 2005/09/29 19:18:37 albertel Exp $
+# $Id: bridgetask.pm,v 1.57 2005/09/30 20:34:53 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -367,10 +367,10 @@ sub start_Task {
$result.="$head_tag_start
$name
$body_tag_start \n".&style();
- $result.=$form_tag_start.
- '';
$result.=&preserve_grade_info();
$result.=&internal_location();
+ $result.=$form_tag_start.
+ '';
&Apache::lonxml::startredirection();
}
} elsif ( ($target eq 'grade' && $env{'form.webgrade'}) ||
@@ -564,7 +564,8 @@ sub end_Task {
"";
$result.=&Apache::inputtags::gradestatus('0');
}
- if (&show_task($status,$previous)) {
+ if (&show_task($status,$previous) &&
+ $Apache::lonhomework::history{"resource.$version.status"} =~ /^(pass|fail)$/) {
my $bt_status=$Apache::lonhomework::history{"resource.$version.status"};
my $title=&Apache::lonnet::gettitle();
my %slot=&Apache::lonnet::get_slot($Apache::inputtags::slot_name);