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

raeburn raeburn@source.lon-capa.org
Sat, 15 Jan 2011 18:24:16 -0000


raeburn		Sat Jan 15 18:24:16 2011 EDT

  Modified files:              
    /loncom/interface	lonmodifycourse.pm 
  Log:
  - scope
  
  
Index: loncom/interface/lonmodifycourse.pm
diff -u loncom/interface/lonmodifycourse.pm:1.58 loncom/interface/lonmodifycourse.pm:1.59
--- loncom/interface/lonmodifycourse.pm:1.58	Tue Jan 11 22:09:49 2011
+++ loncom/interface/lonmodifycourse.pm	Sat Jan 15 18:24:16 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # handler for DC-only modifiable course settings
 #
-# $Id: lonmodifycourse.pm,v 1.58 2011/01/11 22:09:49 raeburn Exp $
+# $Id: lonmodifycourse.pm,v 1.59 2011/01/15 18:24:16 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -845,10 +845,10 @@
 	            push(@warnings,&mt('There is no owner associated with this LON-CAPA course.').
                                    '<br />'.&mt('If automated enrollment at your institution requires validation of course owners, automated enrollment will fail.'));
                 } else {
+                    my %crsenv = &Apache::lonnet::get('environment',['internal.co-owners'],$cdom,$cnum);
+                    my $coowners = $crsenv{'internal.co-owners'};
 	            if (@sections > 0) {
                         if ($changed{'code'}) {
-                            my %crsenv = &Apache::lonnet::get('environment',['internal.co-owners'],$cdom,$cnum);
-                            my $coowners = $crsenv{'internal.co-owners'};
 	                    foreach my $sec (@sections) {
 		                if ($sec =~ m/^(.+):/) {
                                     my $instsec = $1;