Fix show hotspot question - refs #8237

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent 32f2c23469
commit 3f94d26026
  1. 2
      main/exercice/exercise.class.php
  2. 12
      main/exercice/hotspot_actionscript.as.php

@ -4604,6 +4604,8 @@ class Exercise
$studentChoice,
$answerComment,
$results_disabled
$results_disabled,
$answerId
);
break;
case HOT_SPOT_DELINEATION:

@ -116,13 +116,15 @@ while ($hotspot = Database::fetch_assoc($result))
$attemptList = Event::getAllExerciseEventByExeId($exerciseId);
if (!empty($attemptList)) {
$questionAttempt = $attemptList[$questionId][0];
if (isset($attemptList[$questionId])) {
$questionAttempt = $attemptList[$questionId][0];
if (!empty($questionAttempt['answer'])) {
$coordinates = explode('|', $questionAttempt['answer']);
if (!empty($questionAttempt['answer'])) {
$coordinates = explode('|', $questionAttempt['answer']);
foreach ($coordinates as $coordinate) {
$data['answers'][] = Geometry::decodePoint($coordinate);
foreach ($coordinates as $coordinate) {
$data['answers'][] = Geometry::decodePoint($coordinate);
}
}
}
}

Loading…
Cancel
Save