--- loncom/interface/loncoursedata.pm 2006/12/28 21:01:39 1.178 +++ loncom/interface/loncoursedata.pm 2007/01/16 22:50:12 1.180 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: loncoursedata.pm,v 1.178 2006/12/28 21:01:39 albertel Exp $ +# $Id: loncoursedata.pm,v 1.180 2007/01/16 22:50:12 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1177,6 +1177,8 @@ sub update_full_student_data { while (my ($key,$value) = each(%studentdata)) { next if ($key =~ /^(\d+):(resource$|subnum$|keys:)/); my ($transaction,$symb,$parameter) = split(':',$key); + $symb = &unescape($symb); + $parameter = &unescape($parameter); my $symb_id = &get_symb_id($symb); if ($parameter eq 'timestamp') { # We can deal with 'timestamp' right away @@ -1682,7 +1684,7 @@ sub ensure_current_data { "student_id ='$student_id'"); my $data = undef; if (@Result) { - $updatetime = $Result[0]->[5]; # Ack! This is dumb! + $updatetime = $Result[0]->[6]; # Ack! This is dumb! } if ($modifiedtime > $updatetime) { ($status,$data) = &update_student_data($sname,$sdom,$courseid); @@ -1730,7 +1732,7 @@ sub ensure_current_full_data { "student_id ='$student_id'"); my $updatetime; if (@Result && ref($Result[0]) eq 'ARRAY') { - $updatetime = $Result[0]->[6]; + $updatetime = $Result[0]->[7]; } if (! defined($updatetime) || $modifiedtime > $updatetime) { $status = &update_full_student_data($sname,$sdom,$courseid);