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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 05 Mar 2004 23:04:31 -0000


albertel		Fri Mar  5 18:04:31 2004 EDT

  Modified files:              
    /loncom/homework	radiobuttonresponse.pm 
  Log:
  - in survey mode don't show the correctness of the foil just higlight their selection
  
  
  
Index: loncom/homework/radiobuttonresponse.pm
diff -u loncom/homework/radiobuttonresponse.pm:1.83 loncom/homework/radiobuttonresponse.pm:1.84
--- loncom/homework/radiobuttonresponse.pm:1.83	Fri Mar  5 17:59:48 2004
+++ loncom/homework/radiobuttonresponse.pm	Fri Mar  5 18:04:31 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.83 2004/03/05 22:59:48 albertel Exp $
+# $Id: radiobuttonresponse.pm,v 1.84 2004/03/05 23:04:31 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -227,12 +227,12 @@
     if (&Apache::response::show_answer() ) {
 	foreach my $name (@names) {
 	    if ($Apache::response::foilgroup{$name.'.value'} ne 'unused') {
-		$result.="<br />".$Apache::response::foilgroup{$name.'.value'};
-		if ($Apache::response::foilgroup{$name.'.value'} eq 'true') {
+		$result.="<br />";
+		if (defined($lastresponse{$name})) {
 		    $result.='<b>';
 		}
 		$result .= $Apache::response::foilgroup{$name.'.text'};
-		if ($Apache::response::foilgroup{$name.'.value'} eq 'true') {
+		if (defined($lastresponse{$name})) {
 		    $result.='</b>';
 		}
 	    }