Moodle
  1. Moodle
  2. MDL-20185

question import from jcloze error upon encountering a "0" in a gap

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9, 1.9.1, 1.9.2, 1.9.3, 1.9.4, 1.9.5
    • Fix Version/s: 1.7.7+, 1.8.10, 1.9.6
    • Component/s: Questions
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      question import from jcloze error upon encountering a "0" in a gap
      see this discussion: http://moodle.org/mod/forum/discuss.php?d=131421
      easy fix provided in attached patch file
      Joseph

        Gliffy Diagrams

          Activity

          Hide
          Gordon Bateson added a comment -

          many thanks Joseph.

          I have set "question/format/hotpot/format.php" to use the same detection mechanism for JCloze answers as in the main HotPot module script "mod/hotpot/templates/v6.php", namely ...

          if (strlen($text)) {

          I am pretty confident that this will fix the issue, but if there are further problems please feel free to reopen.

          Show
          Gordon Bateson added a comment - many thanks Joseph. I have set "question/format/hotpot/format.php" to use the same detection mechanism for JCloze answers as in the main HotPot module script "mod/hotpot/templates/v6.php", namely ... if (strlen($text)) { I am pretty confident that this will fix the issue, but if there are further problems please feel free to reopen.

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: