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

stredwic lon-capa-cvs@mail.lon-capa.org
Wed, 14 Aug 2002 13:16:31 -0000


stredwic		Wed Aug 14 09:16:31 2002 EDT

  Modified files:              
    /loncom/interface	loncoursedata.pm 
  Log:
  Fixed a part problem
  
  
Index: loncom/interface/loncoursedata.pm
diff -u loncom/interface/loncoursedata.pm:1.14 loncom/interface/loncoursedata.pm:1.15
--- loncom/interface/loncoursedata.pm:1.14	Wed Aug 14 09:13:37 2002
+++ loncom/interface/loncoursedata.pm	Wed Aug 14 09:16:31 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # (Publication Handler
 #
-# $Id: loncoursedata.pm,v 1.14 2002/08/14 13:13:37 stredwic Exp $
+# $Id: loncoursedata.pm,v 1.15 2002/08/14 13:16:31 stredwic Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -692,11 +692,11 @@
                 foreach my $part (split(/\:/,$data->{$sequence.':'.
                                                       $problemID.
                                                       ':parts'})) {
+                    $output->{$name.':'.$problemID.':'.$part.':tries'} = 0;
+                    $output->{$name.':'.$problemID.':'.$part.':awarded'} = 0;
+                    $output->{$name.':'.$problemID.':'.$part.':code'} = ' ';
                     $totalProblems++;
                 }
-                $output->{$name.':'.$problemID.':'.$part.':tries'} = 0;
-                $output->{$name.':'.$problemID.':'.$part.':awarded'} = 0;
-                $output->{$name.':'.$problemID.':'.$part.':code'} = ' ';
                 $output->{$name.':'.$problemID.':NoVersion'} = 'true';
                 next;
             }