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

raeburn raeburn at source.lon-capa.org
Tue Jan 12 10:52:06 EST 2021


raeburn		Tue Jan 12 15:52:06 2021 EDT

  Modified files:              
    /loncom/homework	response.pm 
  Log:
  - If questiontype in effect is one of the four survey types, and award on submission 
    for a customresponse item is 'ASSIGNED_SCORE', change that to one of:
    SUBMITTED, SUBMITTED_CREDIT, ANONYMOUS or ANONYMOUS_CREDIT, as appropriate.  
  
  
Index: loncom/homework/response.pm
diff -u loncom/homework/response.pm:1.247 loncom/homework/response.pm:1.248
--- loncom/homework/response.pm:1.247	Sun Aug 11 12:27:11 2019
+++ loncom/homework/response.pm	Tue Jan 12 15:52:06 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # various response type definitons response definition
 #
-# $Id: response.pm,v 1.247 2019/08/11 12:27:11 raeburn Exp $
+# $Id: response.pm,v 1.248 2021/01/12 15:52:06 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -473,8 +473,8 @@
 		$error = $award;
 		$award = 'ERROR';
 	    }
-            if (($award eq 'INCORRECT' || $award eq 'APPROX_ANS' ||
-                 $award eq 'EXACT_ANS')) {
+            if (($award eq 'INCORRECT') || ($award eq 'APPROX_ANS') ||
+                ($award eq 'EXACT_ANS') || ($award eq 'ASSIGNED_SCORE')) {
                 if ($Apache::lonhomework::type eq 'survey') {
                     $award='SUBMITTED';
                 } elsif ($Apache::lonhomework::type eq 'surveycred') {




More information about the LON-CAPA-cvs mailing list