[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 03 Oct 2003 15:27:02 -0000
albertel Fri Oct 3 11:27:02 2003 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- <part>'s were broken in exam mode
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.211 loncom/homework/structuretags.pm:1.212
--- loncom/homework/structuretags.pm:1.211 Fri Sep 19 17:38:15 2003
+++ loncom/homework/structuretags.pm Fri Oct 3 11:27:02 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.211 2003/09/19 21:38:15 albertel Exp $
+# $Id: structuretags.pm,v 1.212 2003/10/03 15:27:02 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1004,7 +1004,9 @@
} elsif (($target eq 'web' || $target eq 'tex') && !$hidden ) {
my $gradestatus=&Apache::inputtags::gradestatus($Apache::inputtags::part,
$target);
- if ($Apache::lonhomework::type eq 'exam') {$gradestatus='';}
+ if ($Apache::lonhomework::type eq 'exam' && $target eq 'tex') {
+ $gradestatus='';
+ }
$result=$gradestatus;
} elsif ($target eq 'edit') {
$result=&Apache::edit::end_table();