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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 23 Jan 2007 18:22:48 -0000


albertel		Tue Jan 23 13:22:48 2007 EDT

  Modified files:              
    /loncom/interface/spreadsheet	Spreadsheet.pm 
  Log:
  - if you change any sheets we'll need to expire it, not just the default one
  
  
Index: loncom/interface/spreadsheet/Spreadsheet.pm
diff -u loncom/interface/spreadsheet/Spreadsheet.pm:1.76 loncom/interface/spreadsheet/Spreadsheet.pm:1.77
--- loncom/interface/spreadsheet/Spreadsheet.pm:1.76	Mon Jan 22 21:14:18 2007
+++ loncom/interface/spreadsheet/Spreadsheet.pm	Tue Jan 23 13:22:47 2007
@@ -1,5 +1,5 @@
 #
-# $Id: Spreadsheet.pm,v 1.76 2007/01/23 02:14:18 albertel Exp $
+# $Id: Spreadsheet.pm,v 1.77 2007/01/23 18:22:47 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1812,13 +1812,11 @@
 	    &Apache::lonnet::appenv('course.'.$self->{'cid'}.'.spreadsheet_default_'.
 				    $self->{'type'} => $self->filename());
         } 
-        if ($self->is_default()) {
-            if ($self->{'type'} eq 'studentcalc') {
-                &Apache::lonnet::expirespread('','','studentcalc','');
-            } elsif ($self->{'type'} eq 'assesscalc') {
-                &Apache::lonnet::expirespread('','','assesscalc','');
-                &Apache::lonnet::expirespread('','','studentcalc','');
-            }
+	if ($self->{'type'} eq 'studentcalc') {
+	    &Apache::lonnet::expirespread('','','studentcalc','');
+	} elsif ($self->{'type'} eq 'assesscalc') {
+	    &Apache::lonnet::expirespread('','','assesscalc','');
+	    &Apache::lonnet::expirespread('','','studentcalc','');
         }
         return $reply;
     }