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

raeburn raeburn at source.lon-capa.org
Fri Oct 21 21:49:10 EDT 2016


raeburn		Sat Oct 22 01:49:10 2016 EDT

  Modified files:              
    /loncom/interface	lonblockingmenu.pm 
  Log:
  - Include a time interval set at course level.
  
  
Index: loncom/interface/lonblockingmenu.pm
diff -u loncom/interface/lonblockingmenu.pm:1.19 loncom/interface/lonblockingmenu.pm:1.20
--- loncom/interface/lonblockingmenu.pm:1.19	Sun Oct 16 21:49:51 2016
+++ loncom/interface/lonblockingmenu.pm	Sat Oct 22 01:49:10 2016
@@ -2,7 +2,7 @@
 # Routines for configuring blocking of access to collaborative functions, 
 # and specific resources during an exam
 #
-# $Id: lonblockingmenu.pm,v 1.19 2016/10/16 21:49:51 raeburn Exp $
+# $Id: lonblockingmenu.pm,v 1.20 2016/10/22 01:49:10 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -678,7 +678,7 @@
     my $resourcedata=&Apache::lonparmset::readdata($cnum,$cdom);
     if (ref($resourcedata) eq 'HASH') {
         foreach my $key (keys(%{$resourcedata})) {
-            if ($key =~ /^\Q$cid\E(.+)\.0\.interval$/) {
+            if ($key =~ /^\Q$cid\E(.*)\.0\.interval$/) {
                 my $middle = $1;
                 if ($middle eq '') {
                     $intervals{'course'}{'all'} = $resourcedata->{$key};




More information about the LON-CAPA-cvs mailing list