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

banghart lon-capa-cvs@mail.lon-capa.org
Fri, 13 Oct 2006 17:40:14 -0000


banghart		Fri Oct 13 13:40:14 2006 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  	Update environment properly.
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.341 loncom/interface/lonparmset.pm:1.342
--- loncom/interface/lonparmset.pm:1.341	Fri Oct 13 13:17:14 2006
+++ loncom/interface/lonparmset.pm	Fri Oct 13 13:40:12 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.341 2006/10/13 17:17:14 banghart Exp $
+# $Id: lonparmset.pm,v 1.342 2006/10/13 17:40:12 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3254,9 +3254,7 @@
     	    }
         }
 	my $ordered_fields = join ",", @neworder;
-	$env{'course.'.$env{'request.course.id'}.'.metadata.addedorder'} = $ordered_fields;
-        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();
     my $ordered_fields;