[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm

banghart lon-capa-cvs@mail.lon-capa.org
Fri, 13 Oct 2006 20:05:00 -0000


banghart		Fri Oct 13 16:05:00 2006 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  	Maybe now all is done to handle the environment info.
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.342 loncom/interface/lonparmset.pm:1.343
--- loncom/interface/lonparmset.pm:1.342	Fri Oct 13 13:40:12 2006
+++ loncom/interface/lonparmset.pm	Fri Oct 13 16:04:59 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.342 2006/10/13 17:40:12 banghart Exp $
+# $Id: lonparmset.pm,v 1.343 2006/10/13 20:04:59 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3254,6 +3254,8 @@
     	    }
         }
 	my $ordered_fields = join ",", @neworder;
+        my $put_result = &Apache::lonnet::put('environment',
+                           {'metadata.addedorder'=>$ordered_fields},$dom,$crs); 	
 	&Apache::lonnet::appenv('course.'.$env{'request.course.id'}.'.metadata.addedorder' => $ordered_fields);
     }
     my $fields = &get_added_meta_fieldnames();