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

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 24 Sep 2003 18:01:01 -0000


matthew		Wed Sep 24 14:01:01 2003 EDT

  Modified files:              
    /loncom/interface	loncoursedata.pm 
  Log:
  Update to get_sequence_assessment_data to expect arrays from responseType 
  and responseIds.
  
  
Index: loncom/interface/loncoursedata.pm
diff -u loncom/interface/loncoursedata.pm:1.87 loncom/interface/loncoursedata.pm:1.88
--- loncom/interface/loncoursedata.pm:1.87	Wed Sep 24 11:14:41 2003
+++ loncom/interface/loncoursedata.pm	Wed Sep 24 14:01:01 2003
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: loncoursedata.pm,v 1.87 2003/09/24 15:14:41 matthew Exp $
+# $Id: loncoursedata.pm,v 1.88 2003/09/24 18:01:01 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -193,8 +193,10 @@
         my $parts = $curRes->parts();
         my %partdata;
         foreach my $part (@$parts) {
-            $partdata{$part}->{'ResponseTypes'}= $curRes->responseType($part);
-            $partdata{$part}->{'ResponseIds'}  = $curRes->responseIds($part);
+            my @Responses = $curRes->responseType($part);
+            my @Ids       = $curRes->responseIds($part);
+            $partdata{$part}->{'ResponseTypes'}= \@Responses;
+            $partdata{$part}->{'ResponseIds'}  = \@Ids;
         }
         my $assessment = { title => $title,
                            src   => $src,