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

banghart lon-capa-cvs@mail.lon-capa.org
Thu, 28 Sep 2006 23:58:54 -0000


banghart		Thu Sep 28 19:58:54 2006 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  	Store environment variable all lower case.
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.337 loncom/interface/lonparmset.pm:1.338
--- loncom/interface/lonparmset.pm:1.337	Wed Sep 27 19:30:12 2006
+++ loncom/interface/lonparmset.pm	Thu Sep 28 19:58:53 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.337 2006/09/27 23:30:12 banghart Exp $
+# $Id: lonparmset.pm,v 1.338 2006/09/28 23:58:53 banghart Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3225,6 +3225,7 @@
         my $meta_field = $env{'form.fieldname'};
         my $display_field = $env{'form.fieldname'};
         $meta_field =~ s/\W/_/g;
+        $meta_field =~ tr/A-Z/a-z/;
         my $put_result = &Apache::lonnet::put('environment',
                             {'metadata.'.$meta_field.'.values'=>"",
                              'metadata.'.$meta_field.'.added'=>"$display_field",