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

www lon-capa-cvs@mail.lon-capa.org
Thu, 30 May 2002 13:37:09 -0000


www		Thu May 30 09:37:09 2002 EDT

  Modified files:              
    /loncom/interface	lonspreadsheet.pm 
  Log:
  Bug 472
  Starting version 1.78, spreadsheet would only load default sheets in case of 
  error. Previous versions also loaded when no spreadsheet filename could
  be found, i.e., unless (($fn) && ($fn!~/^error/))
  
  
Index: loncom/interface/lonspreadsheet.pm
diff -u loncom/interface/lonspreadsheet.pm:1.89 loncom/interface/lonspreadsheet.pm:1.90
--- loncom/interface/lonspreadsheet.pm:1.89	Tue May  7 14:10:55 2002
+++ loncom/interface/lonspreadsheet.pm	Thu May 30 09:37:09 2002
@@ -1,5 +1,5 @@
 #
-# $Id: lonspreadsheet.pm,v 1.89 2002/05/07 18:10:55 matthew Exp $
+# $Id: lonspreadsheet.pm,v 1.90 2002/05/30 13:37:09 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1312,6 +1312,9 @@
           } else {
               $fn = $tmphash{'spreadsheet_default_'.$stype};
           } 
+          unless (($fn) && ($fn!~/^error\:/)) {
+ 	     $fn='default_'.$stype;
+          }
           $defaultsheets{$cnum.'_'.$cdom.'_'.$stype}=$fn; 
       }
   }