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

raeburn raeburn@source.lon-capa.org
Fri, 20 Aug 2010 03:48:29 -0000


raeburn		Fri Aug 20 03:48:29 2010 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/homework	lonhomework.pm 
  Log:
  - Backport 1.320.
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.310 loncom/homework/lonhomework.pm:1.310.4.1
--- loncom/homework/lonhomework.pm:1.310	Mon May 11 16:51:22 2009
+++ loncom/homework/lonhomework.pm	Fri Aug 20 03:48:29 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.310 2009/05/11 16:51:22 bisitz Exp $
+# $Id: lonhomework.pm,v 1.310.4.1 2010/08/20 03:48:29 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -111,7 +111,11 @@
 	} elsif ( $env{'form.grade_target'} eq 'webgrade'
 		  && ($Apache::lonhomework::queuegrade eq 'F' )) {
 	    return ($env{'form.grade_target'});
-	}
+        } elsif ($env{'form.grade_target'} eq 'answer') {
+            if ($env{'form.answer_output_mode'} eq 'tex') {
+                return ($env{'form.grade_target'});
+            }
+        }
 	if ($env{'form.webgrade'} &&
 	    ($Apache::lonhomework::modifygrades eq 'F'
 	     || $Apache::lonhomework::queuegrade eq 'F' )) {