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

raeburn lon-capa-cvs@mail.lon-capa.org
Wed, 17 May 2006 23:13:50 -0000


raeburn		Wed May 17 19:13:50 2006 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  Initialize arrays when retrieving auto-group population settings. Update documentation item.   
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.372 loncom/interface/loncommon.pm:1.373
--- loncom/interface/loncommon.pm:1.372	Wed May 17 16:47:06 2006
+++ loncom/interface/loncommon.pm	Wed May 17 19:13:47 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.372 2006/05/17 20:47:06 albertel Exp $
+# $Id: loncommon.pm,v 1.373 2006/05/17 23:13:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3916,6 +3916,7 @@
             } elsif ($entry eq 'role') {
                 if ($tool eq 'autosec') {
                     $role = $token->[2]{id};
+                    @{$content{$tool}{$role}} = ();
                 }
             } else {
                 my $value=$parser->get_text('/'.$entry);
@@ -5024,6 +5025,7 @@
     'chartoutputmode' => 'scalar',
     'chartoutputdata' => 'scalar',
     'Section' => 'array',
+    'Group' => 'array',
     'StudentData' => 'array',
     'Maps' => 'array');