Skip to content
Browse files

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

  • Loading branch information...
1 parent 79cc5ce commit 425e7df6eead596581636b538905cb5135815d3d thepurpleblob committed Jun 24, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/quiz/format/qti2/format.php
View
4 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.
Something went wrong with that request. Please try again.