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

raeburn raeburn at source.lon-capa.org
Mon Oct 4 22:41:32 EDT 2021


raeburn		Tue Oct  5 02:41:32 2021 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.pm 
  Log:
  - Without this, get "TypeError" in caparesponse_capa_check_answer() for some 
    random seeds in bubblesheet grading on Ubuntu 20LTS (perl 5.30/swig 4.0.1).
  
  
Index: loncom/homework/caparesponse/caparesponse.pm
diff -u loncom/homework/caparesponse/caparesponse.pm:1.262 loncom/homework/caparesponse/caparesponse.pm:1.263
--- loncom/homework/caparesponse/caparesponse.pm:1.262	Sat Dec  5 05:01:18 2020
+++ loncom/homework/caparesponse/caparesponse.pm	Tue Oct  5 02:41:32 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # caparesponse definition
 #
-# $Id: caparesponse.pm,v 1.262 2020/12/05 05:01:18 raeburn Exp $
+# $Id: caparesponse.pm,v 1.263 2021/10/05 02:41:32 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -401,7 +401,7 @@
     if (ref($response)) {
 	$$args_ref{'response'}=dclone($response);
     } else {
-	$$args_ref{'response'}=dclone([$response]);
+	$$args_ref{'response'}=dclone(["$response"]);
     }
 }
 




More information about the LON-CAPA-cvs mailing list