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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 28 Jun 2005 19:17:36 -0000


albertel		Tue Jun 28 15:17:36 2005 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - setting one part to a type was 'cascading' improerly into other parts in 1 problem
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.294 loncom/homework/structuretags.pm:1.295
--- loncom/homework/structuretags.pm:1.294	Mon Jun 13 16:20:33 2005
+++ loncom/homework/structuretags.pm	Tue Jun 28 15:17:36 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.294 2005/06/13 20:20:33 albertel Exp $
+# $Id: structuretags.pm,v 1.295 2005/06/28 19:17:36 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -510,6 +510,7 @@
 	    defined($env{'form.problemtype'})) {
 	    $Apache::lonhomework::type=$env{'form.problemtype'};
 	}
+	$Apache::lonhomework::default_type = $Apache::lonhomework::type;
 	&Apache::lonxml::debug("Found this to be of type :$Apache::ltonhomework::type:");
     }
     if ($Apache::lonhomework::type eq '' ) {
@@ -1261,6 +1262,7 @@
     }
     pop @Apache::inputtags::status;
     $Apache::inputtags::part='';
+    $Apache::lonhomework::type = $Apache::lonhomework::default_type;
     return $result;
 }