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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 06 Dec 2005 10:16:56 -0000


albertel		Tue Dec  6 05:16:56 2005 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - don't print 'correct' bubble for formularesponse
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.184 loncom/homework/caparesponse/caparesponse.pm:1.185
--- loncom/homework/caparesponse/caparesponse.pm:1.184	Tue Dec  6 05:01:57 2005
+++ loncom/homework/caparesponse/caparesponse.pm	Tue Dec  6 05:16:56 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.184 2005/12/06 10:01:57 albertel Exp $
+# $Id: caparesponse.pm,v 1.185 2005/12/06 10:16:56 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -422,7 +422,8 @@
 	
 	if ($target eq 'answer') {
 	    $result.=&Apache::response::answer_header($tag);
-	    if ($Apache::lonhomework::type eq 'exam') {
+	    if ($tag eq 'numericalresponse'
+		&& $Apache::lonhomework::type eq 'exam') {
 		my ($bubble_values,undef,$correct) = &make_numerical_bubbles($partid,
 					     $id,$target,$parstack,$safeeval);
 		$result.=&Apache::response::answer_part($tag,$correct);