Forum archive 2000-2006

Mark Schmitt - Bug in display Macros

Mark Schmitt - Bug in display Macros

by Arnold Pizer -
Number of replies: 0
inactiveTopicBug in display Macros topic started 10/21/2003; 10:57:21 AM
last post 10/21/2003; 10:57:21 AM
userMark Schmitt - Bug in display Macros  blueArrow
10/21/2003; 10:57:21 AM (reads: 453, responses: 0)
When using pc_evaluator to give partial credit, the message "The above answer is CORRECT" appears for all answers that receive partial credit.  I think that is misleading.  To correct the problem, I editted the way $allAnswersCorrectQ is determined. (around line 176)

Old version:
$allAnswersCorrectQ = $allAnswersCorrectQ && $answerIsCorrectQ;

New version:
$allAnswersCorrectQ = $allAnswersCorrectQ && $answerIsCorrectQ && ($rh_problem_result->{score} == 1);

This seems to take care of the problem.

<| Post or View Comments |>