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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 06 Oct 2006 19:02:21 -0000


albertel		Fri Oct  6 15:02:21 2006 EDT

  Modified files:              
    /loncom/interface	loncoursedata.pm 
  Log:
  - switch from using static numbers to using the constants so as to not break
     when the table changes (BUG#5050)
  
  
Index: loncom/interface/loncoursedata.pm
diff -u loncom/interface/loncoursedata.pm:1.175 loncom/interface/loncoursedata.pm:1.176
--- loncom/interface/loncoursedata.pm:1.175	Thu Aug 10 17:07:01 2006
+++ loncom/interface/loncoursedata.pm	Fri Oct  6 15:02:20 2006
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: loncoursedata.pm,v 1.175 2006/08/10 21:07:01 albertel Exp $
+# $Id: loncoursedata.pm,v 1.176 2006/10/06 19:02:20 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2723,7 +2723,7 @@
     if (ref($dataset) eq 'ARRAY' && scalar(@$dataset)>0) {
         # Clear the \'s from around the submission
         for (my $i =0;$i<scalar(@$dataset);$i++) {
-            $dataset->[$i]->[3] =~ s/(\'$|^\')//g;
+            $dataset->[$i]->[&RD_submission()] =~ s/(\'$|^\')//g;
         }
         return $dataset;
     }
@@ -2784,7 +2784,7 @@
     if (ref($dataset) eq 'ARRAY' && scalar(@$dataset)>0) {
         # Clear the \'s from around the submission
         for (my $i =0;$i<scalar(@$dataset);$i++) {
-            $dataset->[$i]->[2] =~ s/(\'$|^\')//g;
+            $dataset->[$i]->[&RDs_submission] =~ s/(\'$|^\')//g;
         }
         return $dataset;
     }