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

sakharuk lon-capa-cvs@mail.lon-capa.org
Wed, 01 Sep 2004 19:42:26 -0000


sakharuk		Wed Sep  1 15:42:26 2004 EDT

  Modified files:              
    /loncom/homework	essayresponse.pm 
  Log:
  Bug 3424 (Survey problem in exam mode can not be printed from the construction space) is now fixed.
  
  
Index: loncom/homework/essayresponse.pm
diff -u loncom/homework/essayresponse.pm:1.35 loncom/homework/essayresponse.pm:1.36
--- loncom/homework/essayresponse.pm:1.35	Mon May 10 19:09:18 2004
+++ loncom/homework/essayresponse.pm	Wed Sep  1 15:42:26 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # essay (ungraded) style responses
 #
-# $Id: essayresponse.pm,v 1.35 2004/05/10 23:09:18 albertel Exp $
+# $Id: essayresponse.pm,v 1.36 2004/09/01 19:42:26 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -161,6 +161,7 @@
 	if ($Apache::lonhomework::type eq 'exam') {
 	    my $repetition=&Apache::response::repetition();
 	    $result.='\begin{enumerate}';
+	    if ($ENV{'request.state'} eq "construct" ) {$result.='\item[\strut]';}
 	    for (my $i=0;$i<$repetition;$i++) {
 		$result.='\item[\textbf{'.($Apache::lonxml::counter+$i).
 		    '}.]\textit{'.&mt('Leave blank on scoring form').