[LON-CAPA-cvs] cvs: loncom(version_0_5_1) /interface lonspreadsheet.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Mon, 09 Sep 2002 18:28:02 -0000
albertel Mon Sep 9 14:28:02 2002 EDT
Modified files: (Branch: version_0_5_1)
/loncom/interface lonspreadsheet.pm
Log:
- adding a fix from matthew to get the student look up correct
Index: loncom/interface/lonspreadsheet.pm
diff -u loncom/interface/lonspreadsheet.pm:1.100 loncom/interface/lonspreadsheet.pm:1.100.2.1
--- loncom/interface/lonspreadsheet.pm:1.100 Fri Aug 16 14:25:24 2002
+++ loncom/interface/lonspreadsheet.pm Mon Sep 9 14:28:02 2002
@@ -1,5 +1,5 @@
#
-# $Id: lonspreadsheet.pm,v 1.100 2002/08/16 18:25:24 matthew Exp $
+# $Id: lonspreadsheet.pm,v 1.100.2.1 2002/09/09 18:28:02 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1750,8 +1750,11 @@
my $safeeval=shift;
my %bighash;
my $stype=&gettype($safeeval);
+ my $uname=&getuname($safeeval);
+ my $udom =&getudom($safeeval);
my %current=();
- unless ($updatedata{$ENV{'request.course.fn'}.'_'.$stype}) {
+ unless ($updatedata{
+ $ENV{'request.course.fn'}.'_'.$stype.'_'.$uname.'_'.$udom}) {
# -------------------------------------------------------------------- Tie hash
if (tie(%bighash,'GDBM_File',$ENV{'request.course.fn'}.'.db',
&GDBM_READER(),0640)) {
@@ -1832,7 +1835,7 @@
} elsif ($stype eq 'studentcalc') {
%current=%allassess;
}
- $updatedata{$ENV{'request.course.fn'}.'_'.$stype}=
+ $updatedata{$ENV{'request.course.fn'}.'_'.$stype.'_'.$uname.'_'.$udom}=
join('___;___',%current);
} else {
return 'Could not access course data';
@@ -1840,7 +1843,7 @@
# ------------------------------------------------------ Get current from cache
} else {
%current=split(/\_\_\_\;\_\_\_/,
- $updatedata{$ENV{'request.course.fn'}.'_'.$stype});
+ $updatedata{$ENV{'request.course.fn'}.'_'.$stype.'_'.$uname.'_'.$udom});
}
# -------------------- Find discrepancies between the course row table and this
#