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

raeburn raeburn@source.lon-capa.org
Fri, 13 Aug 2010 01:33:48 -0000


raeburn		Fri Aug 13 01:33:48 2010 EDT

  Modified files:              (Branch: version_2_10_X)
    /loncom/homework	lonhomework.pm 
  Log:
  - Backport 1.320.
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.317 loncom/homework/lonhomework.pm:1.317.4.1
--- loncom/homework/lonhomework.pm:1.317	Sat Jan 30 22:40:37 2010
+++ loncom/homework/lonhomework.pm	Fri Aug 13 01:33:48 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.317 2010/01/30 22:40:37 bisitz Exp $
+# $Id: lonhomework.pm,v 1.317.4.1 2010/08/13 01:33:48 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' )) {