[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonstatistics.pm

raeburn raeburn at source.lon-capa.org
Fri Aug 5 21:44:17 EDT 2016


raeburn		Sat Aug  6 01:44:17 2016 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	lonstatistics.pm 
  Log:
  - For 2.11
    - Backport 1.162
  
  
Index: loncom/interface/lonstatistics.pm
diff -u loncom/interface/lonstatistics.pm:1.156.2.5 loncom/interface/lonstatistics.pm:1.156.2.6
--- loncom/interface/lonstatistics.pm:1.156.2.5	Thu Mar 12 03:08:29 2015
+++ loncom/interface/lonstatistics.pm	Sat Aug  6 01:44:16 2016
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstatistics.pm,v 1.156.2.5 2015/03/12 03:08:29 raeburn Exp $
+# $Id: lonstatistics.pm,v 1.156.2.6 2016/08/06 01:44:16 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -366,7 +366,7 @@
 
 sub get_students {
     if (! @Students) {
-        &PrepareClasslist()
+        &PrepareClasslist();
     }
     return @Students;
 }
@@ -582,6 +582,14 @@
         &PrepareClasslist();
     }
     #
+    # Make sure course's groupnames and studentgroups tables
+    # are up to date.
+    #
+    if (@Groups) {
+        &Apache::loncoursedata::ensure_current_groups();
+        &Apache::loncoursedata::ensure_current_students_groups();
+    }
+    #
     # Build the form element
     my $Str = "\n";
     $Str .= '<select name="'.$elementname.'" ';




More information about the LON-CAPA-cvs mailing list