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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 02 Jul 2004 08:21:39 -0000


albertel		Fri Jul  2 04:21:39 2004 EDT

  Modified files:              
    /loncom/homework	optionresponse.pm 
  Log:
  - more fixes for crappy matchresponse BUG#3094
  
  
Index: loncom/homework/optionresponse.pm
diff -u loncom/homework/optionresponse.pm:1.110 loncom/homework/optionresponse.pm:1.111
--- loncom/homework/optionresponse.pm:1.110	Thu May 27 00:25:13 2004
+++ loncom/homework/optionresponse.pm	Fri Jul  2 04:21:39 2004
@@ -1,7 +1,7 @@
 # LearningOnline Network with CAPA
 # option list style responses
 #
-# $Id: optionresponse.pm,v 1.110 2004/05/27 04:25:13 albertel Exp $
+# $Id: optionresponse.pm,v 1.111 2004/07/02 08:21:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -479,8 +479,11 @@
 	}
 	$result.='<td><input type="radio" name="HWVAL_'.
 	    $Apache::inputtags::response['-1'].':'.$temp.
-	    '" value="'.$opt[$ind].'" '.$checked.' />'.$alphabet[$ind].': '.
-	    $opt[$ind].'</td>';
+	    '" value="'.$opt[$ind].'" '.$checked.' />';
+	if ($alphabet[$ind]) {
+	    $result.=$alphabet[$ind].': ';
+	}
+	$result.=$opt[$ind].'</td>';
     }
     $result.='</tr></table>';
     return $result;