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

www lon-capa-cvs@mail.lon-capa.org
Tue, 15 Apr 2003 19:01:14 -0000


www		Tue Apr 15 15:01:14 2003 EDT

  Modified files:              
    /loncom/interface	lonevaluate.pm 
  Log:
  Got Javascript error if an item was not set yet - fixed.
  
  
Index: loncom/interface/lonevaluate.pm
diff -u loncom/interface/lonevaluate.pm:1.10 loncom/interface/lonevaluate.pm:1.11
--- loncom/interface/lonevaluate.pm:1.10	Mon Aug 26 08:47:28 2002
+++ loncom/interface/lonevaluate.pm	Tue Apr 15 15:01:14 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Evaluate
 #
-# $Id: lonevaluate.pm,v 1.10 2002/08/26 12:47:28 www Exp $
+# $Id: lonevaluate.pm,v 1.11 2003/04/15 19:01:14 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -125,7 +125,8 @@
 
     foreach my $item (@items) {
        unless ($item eq 'comments') {
-           unless ($item eq 'timestamp') {
+           unless (($item eq 'timestamp') || 
+                   (!defined($currenteval{$prefix.$item}))) {
               $dialold.=
                    'document.evaluation.'.$item.'.selectedIndex='.
                    $currenteval{$prefix.$item}.";\n";