pull/2487/head
Angel Fernando Quiroz Campos 9 years ago
parent 98a43f3128
commit 6ced1484cf
  1. 6
      main/exercise/hotspot_actionscript.as.php
  2. 2
      main/inc/lib/exercise.lib.php

@ -133,9 +133,9 @@ if (!empty($attemptList)) {
$data['nmbrTries'] = $nmbrTries;
$data['done'] = 'done';
if (Session::has('hotspot_ordered')) {
if (Session::has("hotspot_ordered$questionId")) {
$tempHotspots = [];
$hotspotOrdered = Session::read('hotspot_ordered');
$hotspotOrdered = Session::read("hotspot_ordered$questionId");
foreach ($hotspotOrdered as $hotspotOrder) {
foreach ($data['hotspots'] as $hotspot) {
@ -149,7 +149,7 @@ if (Session::has('hotspot_ordered')) {
$data['hotspots'] = $tempHotspots;
Session::erase('hotspot_ordered');
Session::erase("hotspot_ordered$questionId");
}
header('Content-Type: application/json');

@ -1186,7 +1186,7 @@ HTML;
';
if (!empty($answers_hotspot)) {
Session::write('hotspot_ordered', array_keys($answers_hotspot));
Session::write("hotspot_ordered$questionId", array_keys($answers_hotspot));
$countAnswers = 1;
foreach ($answers_hotspot as $value) {
$answerList .= "<li><p>{$countAnswers} - {$value}</p></li>";

Loading…
Cancel
Save