Merge pull request #4059 from christianbeeznest/orouba-19326-2

Exercise: Fix selected value for FIB answer html doing clic on back button - refs BT#19326
pull/4062/head
Nicolas Ducoulombier 4 years ago committed by GitHub
commit 8f84d34f08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      main/exercise/fill_blanks.class.php

@ -545,7 +545,8 @@ class FillBlanks extends Question
foreach ($listMenu as $item) {
$resultOptions[sha1($item)] = self::replaceSpecialCharsForMenuValues($item);
}
// It is checked special chars used in menu
$correctItem = self::replaceSpecialCharsForMenuValues($correctItem);
foreach ($resultOptions as $key => $value) {
if ($correctItem == $value) {
$selected = $key;

Loading…
Cancel
Save