--- loncom/homework/default_homework.lcpm 2005/02/17 23:42:38 1.93 +++ loncom/homework/default_homework.lcpm 2005/02/18 22:52:50 1.94 @@ -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 @@ sub caparesponse_check { 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'; }