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

raeburn raeburn@source.lon-capa.org
Sat, 22 Aug 2009 21:10:32 -0000


raeburn		Sat Aug 22 21:10:32 2009 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - environment variable is 'canrequest' not 'crsrequest'.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.107 loncom/interface/domainprefs.pm:1.108
--- loncom/interface/domainprefs.pm:1.107	Sat Aug 22 20:28:29 2009
+++ loncom/interface/domainprefs.pm	Sat Aug 22 21:10:32 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.107 2009/08/22 20:28:29 raeburn Exp $
+# $Id: domainprefs.pm,v 1.108 2009/08/22 21:10:32 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3976,8 +3976,8 @@
                                                           $env{'user.domain'},
                                                           $item,'reload',$context);
                     if ($context eq 'requestcourses') {
-                        if ($env{'environment.crsrequest.'.$item} ne $newacc) {
-                            $newenv{'environment.crsrequest.'.$item} = $newacc;
+                        if ($env{'environment.canrequest.'.$item} ne $newacc) {
+                            $newenv{'environment.canrequest.'.$item} = $newacc;
                         }
                     } else {
                         if ($env{'environment.availabletools.'.$item} ne $newacc) {