Index: lib/questionlib.php =================================================================== --- lib/questionlib.php (revision 203) +++ lib/questionlib.php (working copy) @@ -822,7 +822,9 @@ // The question field must be listed first so that it is used as the // array index in the array returned by get_records_sql - $statefields = 'n.questionid as question, s.*, n.sumpenalty, n.manualcomment'; + $statefields = 'n.questionid as question, s.id, s.attempt, s.originalquestion, ' . + 's.seq_number, s.answer, s.timestamp, s.event, s.grade, s.raw_grade, ' . + 's.penalty, n.sumpenalty, n.manualcomment'; //CQU - removed the ambiguous column description // Load the newest states for the questions $sql = "SELECT $statefields". " FROM {$CFG->prefix}question_states s,". @@ -857,7 +859,11 @@ // Find the responses from the previous attempt and save them to the new session // Load the last graded state for the question - $statefields = 'n.questionid as question, s.*, n.sumpenalty'; + $statefields = 'n.questionid as question, s.id, s.attempt, s.originalquestion, ' . + 's.seq_number, s.answer, s.timestamp, s.event, s.grade, s.raw_grade, ' . + 's.penalty, n.sumpenalty'; //CQU - removed the ambiguous column description + + $sql = "SELECT $statefields". " FROM {$CFG->prefix}question_states s,". " {$CFG->prefix}question_sessions n". Property changes on: lib/questionlib.php ___________________________________________________________________ Added: svn:executable + *