Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-11708

Zero answers are not allowed in Matching questions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.7.4, 1.8.4, 1.9
    • Component/s: Questions
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE

      Description

      Bugs in /question/type/match/edit_match_form.php and /question/type/match/questiontype.php prevent the setting of "0" as an answer in a Matching question.

      It's caused by the usual empty vs. !isset problem. The attached patches fix the problem.

      Note that something similar was reported as MDL-4077 and was apparently closed, but the probelm persists.

        Attachments

          Activity

            People

            Assignee:
            timhunt Tim Hunt
            Reporter:
            daveyboond Steve Bond
            Tester:
            Nobody
            Participants:
            Component watchers:
            Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              11/Jan/08