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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 05 Mar 2004 19:44:18 -0000


albertel		Fri Mar  5 14:44:18 2004 EDT

  Modified files:              
    /loncom/homework	radiobuttonresponse.pm 
  Log:
  - BUG#2776, rbr doesn't complain about a lack of true statments if it is a survey
  
  
Index: loncom/homework/radiobuttonresponse.pm
diff -u loncom/homework/radiobuttonresponse.pm:1.81 loncom/homework/radiobuttonresponse.pm:1.82
--- loncom/homework/radiobuttonresponse.pm:1.81	Tue Feb 24 19:41:47 2004
+++ loncom/homework/radiobuttonresponse.pm	Fri Mar  5 14:44:18 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # mutliple choice style responses
 #
-# $Id: radiobuttonresponse.pm,v 1.81 2004/02/25 00:41:47 albertel Exp $
+# $Id: radiobuttonresponse.pm,v 1.82 2004/03/05 19:44:18 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -335,7 +335,7 @@
     &Apache::lonxml::debug("Answer wants $answer");
     my $truename=$truelist[$whichtrue];
     my $dosplice=1;
-    if ($notrue) {
+    if ($notrue && $Apache::lonhomework::type ne 'survey') {
 	$dosplice=0;
 	&Apache::lonxml::error("There are no true statements available.<br />");
     }