Plugin: Fix Whispeak when saving question answer - refs BT#15819

pull/3377/head
Angel Fernando Quiroz Campos 7 years ago
parent 63d6453400
commit 5e441b1035
  1. 2
      main/inc/ajax/exercise.ajax.php
  2. 4
      plugin/whispeakauth/WhispeakAuthPlugin.php

@ -453,6 +453,8 @@ switch ($action) {
echo 'ok';
break;
} else {
ChamiloSession::erase(WhispeakAuthPlugin::SESSION_QUIZ_QUESTION);
}
// Getting information of the current exercise.

@ -281,7 +281,7 @@ class WhispeakAuthPlugin extends Plugin implements HookPluginInterface
return false;
}
$questionInfo = ChamiloSession::read(WhispeakAuthPlugin::SESSION_QUIZ_QUESTION, []);
$questionInfo = ChamiloSession::read(self::SESSION_QUIZ_QUESTION, []);
if (empty($questionInfo)) {
return true;
@ -295,8 +295,6 @@ class WhispeakAuthPlugin extends Plugin implements HookPluginInterface
return true;
}
ChamiloSession::erase(WhispeakAuthPlugin::SESSION_QUIZ_QUESTION);
return false;
}

Loading…
Cancel
Save