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

raeburn raeburn at source.lon-capa.org
Sat Dec 10 12:53:45 EST 2011


raeburn		Sat Dec 10 17:53:45 2011 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - Always undef globals when done, to avoid them bleeding into transactions 
    for other users.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.497 loncom/homework/structuretags.pm:1.498
--- loncom/homework/structuretags.pm:1.497	Mon Nov 14 00:20:39 2011
+++ loncom/homework/structuretags.pm	Sat Dec 10 17:53:45 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.497 2011/11/14 00:20:39 raeburn Exp $
+# $Id: structuretags.pm,v 1.498 2011/12/10 17:53:45 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -960,6 +960,9 @@
     undef(%Apache::lonhomework::history);
     undef(%Apache::lonhomework::results);
     undef($Apache::inputtags::part);
+    if ($type eq 'Task') {
+        undef($Apache::inputtags::slot_name);
+    }
 #don't undef this, lonhomework.pm takes care of this, we use this to 
 #detect if we try to do 2 problems in one file
 #   undef($Apache::lonhomework::parsing_a_problem);




More information about the LON-CAPA-cvs mailing list