[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 09 Sep 2003 13:32:25 -0000


sakharuk		Tue Sep  9 09:32:25 2003 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm 
  Log:
  Addition neccessary to fix bug 2085 (authors cannot print sequences). See comment to last cvs submission of lonprintout.pm.
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.138 loncom/homework/lonhomework.pm:1.139
--- loncom/homework/lonhomework.pm:1.138	Tue Jul 22 15:55:26 2003
+++ loncom/homework/lonhomework.pm	Tue Sep  9 09:32:25 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.138 2003/07/22 19:55:26 albertel Exp $
+# $Id: lonhomework.pm,v 1.139 2003/09/09 13:32:25 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -68,6 +68,9 @@
       return ($ENV{'form.grade_target'});
     } elsif ( defined($ENV{'form.grade_target'}  ) 
 	 && ($Apache::lonhomework::viewgrades eq 'F' )) {
+      return ($ENV{'form.grade_target'});
+    } elsif (defined($ENV{'form.grade_target'}  ) 
+	 && ($ENV{'form.grade_target'} eq 'answer')) {
       return ($ENV{'form.grade_target'});
     }