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

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 03 Sep 2003 17:45:49 -0000


matthew		Wed Sep  3 13:45:49 2003 EDT

  Modified files:              
    /loncom/interface/statistics	lonstudentassessment.pm 
  Log:
  Fix annoying bug where, depending on httpd, it would mistakenly assume you
  were in 'single student mode'.  Good old package variables.....  
  Should go in 1.0.1 if possible.
  
  
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.64 loncom/interface/statistics/lonstudentassessment.pm:1.65
--- loncom/interface/statistics/lonstudentassessment.pm:1.64	Tue Jun 24 17:44:09 2003
+++ loncom/interface/statistics/lonstudentassessment.pm	Wed Sep  3 13:45:49 2003
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstudentassessment.pm,v 1.64 2003/06/24 21:44:09 albertel Exp $
+# $Id: lonstudentassessment.pm,v 1.65 2003/09/03 17:45:49 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -138,7 +138,10 @@
 #######################################################
 sub BuildStudentAssessmentPage {
     my ($r,$c)=@_;
+
     undef($Statistics);
+
+    $single_student_mode = 0;
     $single_student_mode = 1 if ($ENV{'form.SelectedStudent'});
     if ($ENV{'form.selectstudent'}) {
         &Apache::lonstatistics::DisplayClasslist($r);