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

Cannot create a drag-drop markers question with marker '0'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.3, 3.1.3
    • Fix Version/s: 3.1.4
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a 'Drag and drop markers' question where one of the drag items has a label that is the text string comprising a single digit zero (0). (See https://docs.moodle.org/31/en/Drag_and_drop_markers_question_type if you need help with this.)
      2. Preview the question and make sure it works with no errors.
      3. Re-edit the question, and verify that all the form fields are still set to the values you entered.
      Show
      Create a 'Drag and drop markers' question where one of the drag items has a label that is the text string comprising a single digit zero (0). (See https://docs.moodle.org/31/en/Drag_and_drop_markers_question_type if you need help with this.) Preview the question and make sure it works with no errors. Re-edit the question, and verify that all the form fields are still set to the values you entered.
    • Affected Branches:
      MOODLE_30_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:

      Description

      If you try to create a question with marker 0, then you can save the form (so no problem with form validation) but when you re-edit the question, some of the data about that marker has been lost.

      Probably as a result of that, if you try to preview the question, you get errors.

        Attachments

          Activity

            People

            • Assignee:
              timhunt Tim Hunt
              Reporter:
              timhunt Tim Hunt
              Peer reviewer:
              John Beedell
              Integrator:
              Dan Poltawski
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Jan/17