[LON-CAPA-cvs] cvs: loncom /homework default_homework.lcpm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 18 Feb 2005 22:52:50 -0000


albertel		Fri Feb 18 17:52:50 2005 EDT

  Modified files:              
    /loncom/homework	default_homework.lcpm 
  Log:
  - BUG#3914, under spcified multi-dimensional input threw errors
  
  
Index: loncom/homework/default_homework.lcpm
diff -u loncom/homework/default_homework.lcpm:1.93 loncom/homework/default_homework.lcpm:1.94
--- loncom/homework/default_homework.lcpm:1.93	Thu Feb 17 18:42:38 2005
+++ loncom/homework/default_homework.lcpm	Fri Feb 18 17:52:50 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run()
 #
-# $Id: default_homework.lcpm,v 1.93 2005/02/17 23:42:38 albertel Exp $
+# $Id: default_homework.lcpm,v 1.94 2005/02/18 22:52:50 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -163,6 +163,8 @@
     elsif ($result == '9') { $result='ANS_CNT_NOT_MATCH'; }
     elsif ($result =='10') { $result='SUB_RECORDED'; }
     elsif ($result =='11') { $result='BAD_FORMULA'; }
+    elsif ($result =='12' && !$response) { $result='MISSING_ANSWER'; }
+    elsif ($result =='12') { $result='WANTED_NUMERIC'; }
     elsif ($result =='13') { $result='UNIT_INVALID_INSTRUCTOR'; }
     elsif ($result =='141') { $result='UNIT_INVALID_STUDENT'; }
     elsif ($result =='142') { $result='UNIT_INVALID_STUDENT'; }