[system] / branches / rel-2-2-dev / webwork-modperl / lib / WeBWorK / ContentGenerator / Problem.pm Repository:
ViewVC logotype

Diff of /branches/rel-2-2-dev/webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1774 Revision 1775
1################################################################################ 1################################################################################
2# WeBWorK Online Homework Delivery System 2# WeBWorK Online Homework Delivery System
3# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright © 2000-2003 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader: webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm,v 1.111 2004/01/23 13:13:53 gage Exp $ 4# $CVSHeader: webwork-modperl/lib/WeBWorK/ContentGenerator/Problem.pm,v 1.112 2004/01/23 21:46:37 gage Exp $
5# 5#
6# This program is free software; you can redistribute it and/or modify it under 6# This program is free software; you can redistribute it and/or modify it under
7# the terms of either: (a) the GNU General Public License as published by the 7# the terms of either: (a) the GNU General Public License as published by the
8# Free Software Foundation; either version 2, or (at your option) any later 8# Free Software Foundation; either version 2, or (at your option) any later
9# version, or (b) the "Artistic License" which comes with this package. 9# version, or (b) the "Artistic License" which comes with this package.
546 my $answer_log = $self->{ce}->{courseFiles}->{logs}->{'answer_log'}; 546 my $answer_log = $self->{ce}->{courseFiles}->{logs}->{'answer_log'};
547 if ( defined($answer_log )) { 547 if ( defined($answer_log )) {
548 if ($submitAnswers ) { 548 if ($submitAnswers ) {
549 my $answerString = ""; 549 my $answerString = "";
550 my %answerHash = %{ $pg->{answers} }; 550 my %answerHash = %{ $pg->{answers} };
551 # FIXME this is the line 552 error. make sure original student ans is defined.
552 # The fact that it is not defined is probably due to an error in some answer evaluator.
553 # But I think it is useful to suppress this error message in the log.
554 my $student_ans = $answerHash{$_}->{original_student_ans} ||'';
551 $answerString = $answerString . $answerHash{$_}->{original_student_ans}."\t" 555 $answerString = $answerString . $student_ans."\t"
552 foreach (sort keys %answerHash); 556 foreach (sort keys %answerHash);
553 $answerString = '' unless defined($answerString); # insure string is defined. 557 $answerString = '' unless defined($answerString); # insure string is defined.
554 writeCourseLog($self->{ce}, "answer_log", 558 writeCourseLog($self->{ce}, "answer_log",
555 join("", 559 join("",
556 '|', $problem->user_id, 560 '|', $problem->user_id,

Legend:
Removed from v.1774  
changed lines
  Added in v.1775

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9