Permalink
Browse files

tolerance being picked up from 'old' place in object. Fixed.

  • Loading branch information...
thepurpleblob
thepurpleblob committed Jun 24, 2005
1 parent 79cc5ce commit 425e7df6eead596581636b538905cb5135815d3d
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/format/qti2/format.php
@@ -599,8 +599,8 @@ function writequestion($question, $shuffleanswers = null, $courselevel = false,
break;
case NUMERICAL:
$qanswer = array_pop( $question->options->answers );
$smarty->assign('lowerbound', $qanswer->answer - $question->options->tolerance);
$smarty->assign('upperbound', $qanswer->answer + $question->options->tolerance);
$smarty->assign('lowerbound', $qanswer->answer - $qanswer->tolerance);
$smarty->assign('upperbound', $qanswer->answer + $qanswer->tolerance);
$smarty->assign('answer', $qanswer->answer);
$expout = $smarty->fetch('numerical.tpl');
break;

0 comments on commit 425e7df

Please sign in to comment.