Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5275

Importing JCloze file to question bank problem with non-ascii accents

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.3
    • Fix Version/s: 2.4.11, 2.5.5, 2.6.2, 2.7
    • Component/s: Module: HotPot
    • Labels:
      None
    • Plugin Version:
      2.6
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_24_STABLE, MOODLE_25_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE

      Description

      Moodle 2.6, qformat_hotpot release 2013.11.30 (15) version 2013113015.

      Using Hot Potatoes JCloze tool, create a "Gap-fill" exercise containing text with some non-ascii characters, e.g. French. Make sure at least one gap contains a word with non-ascii characters.
      In the Options->Configure Output options, check the option "Use dropdown list instead of text box in input".
      Save the *.jcl file.
      In a Moodle 2.6 course, go to the Questions bank->Import, check the "Hot Potatoes XML" format and import your *.jcl file.
      You get error message: "Coding error detected, it must be fixed by a programmer: $result->noticeyesno no longer supported in save_question."

      Fix:
      In file yourmoodle/question/format/hotpot/format.php line 226
      replace
      $correcttext = $this->hotpot_prepare_str($source->xml_value($tags, $answer."['text'][0]'#'"));
      with:
      $correcttext = $source->xml_value($tags, $answer."['text'][0]'#'");

      Please note that the error message does not seem related to the actual error!

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                3 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Mar/14