[LON-CAPA-cvs] cvs: loncom /interface lonprintout.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 06 Dec 2005 09:41:03 -0000


albertel		Tue Dec  6 04:41:03 2005 EDT

  Modified files:              
    /loncom/interface	lonprintout.pm 
  Log:
  - preserve probstatus selection even in only answers mode
  
  
Index: loncom/interface/lonprintout.pm
diff -u loncom/interface/lonprintout.pm:1.400 loncom/interface/lonprintout.pm:1.401
--- loncom/interface/lonprintout.pm:1.400	Mon Dec  5 22:58:14 2005
+++ loncom/interface/lonprintout.pm	Tue Dec  6 04:41:02 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Printout
 #
-# $Id: lonprintout.pm,v 1.400 2005/12/06 03:58:14 albertel Exp $
+# $Id: lonprintout.pm,v 1.401 2005/12/06 09:41:02 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1109,6 +1109,9 @@
 		$form{'grade_target'}='answer';
 		$form{'answer_output_mode'}='tex';
 		$form{'rndseed'}=$rndseed;
+                if ($helper->{'VARS'}->{'probstatus'} eq 'exam') {
+		    $form{'problemtype'}='exam';
+		}
 		$resources_printed .= $currentURL.':';
 		my $answer=&Apache::lonnet::ssi($currentURL,%form);
 		if ($helper->{'VARS'}->{'ANSWER_TYPE'} eq 'no') {