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

onken onken@source.lon-capa.org
Thu, 16 Apr 2009 14:45:47 -0000


onken		Thu Apr 16 14:45:47 2009 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Disable printing PDF-Textfields if a problem can't be answered.
   
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.256 loncom/homework/inputtags.pm:1.257
--- loncom/homework/inputtags.pm:1.256	Tue Feb 24 17:12:19 2009
+++ loncom/homework/inputtags.pm	Thu Apr 16 14:45:47 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.256 2009/02/24 17:12:19 biermanm Exp $
+# $Id: inputtags.pm,v 1.257 2009/04/16 14:45:47 onken Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -388,7 +388,8 @@
 	     && $Apache::lonhomework::type ne 'exam') {
 	my $size = &Apache::lonxml::get_param('size',$parstack,$safeeval);
 	if ($size != 0) {$size=$size*2; $size.=' mm';} else {$size='40 mm';}
-	if ($env{'form.pdfFormFields'} eq 'yes') {
+	if ($env{'form.pdfFormFields'} eq 'yes'
+            && $Apache::inputtags::status[-1] eq 'CAN_ANSWER') {
             my $fieldname = $env{'request.symb'}.
                                  '&part_'. $Apache::inputtags::part.
                                  '&textresponse'.