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

Errors when updating matching questions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.3, 2.9
    • Fix Version/s: 2.8.4
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide
      1. Set Debugging to developer
      2. Create a lesson activity
      3. Add a matching question with just an image in each answer and a word in each matches
      4. Save the question
      5. Re-edit the matching question
      6. DO NOT CHANGE ANYTHING ON THE QUESTION
      7. Click "Save Page"
      8. verify that no notice is displayed
      Show
      Set Debugging to developer Create a lesson activity Add a matching question with just an image in each answer and a word in each matches Save the question Re-edit the matching question DO NOT CHANGE ANYTHING ON THE QUESTION Click "Save Page" verify that no notice is displayed
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_29_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull Master Branch:

      Description

      Notice: Undefined offset: 0 in /Applications/MAMP/htdocs/moodle28/mod/lesson/pagetypes/matching.php on line 357

      Notice: Undefined offset: 1 in /Applications/MAMP/htdocs/moodle28/mod/lesson/pagetypes/matching.php on line 357

      Was able to reproduce this on qa.moodle.net

      Steps to reproduce:
      0. Set Debugging to developer

      As a teacher:
      1. Create a lesson activity
      2. Add a matching question with the following settings:
      Name: Fruit
      Page contents: Match the fruit with their pictures
      Matching Pair 1 Answer: Add ONLY a picture of an apple (I had added it from the wikimedia repository)
      Matching Pair 1 Matches with Answer: Apple
      Matching Pair 2 Answer: Add ONLY a picture of an pear (I had added it from the wikimedia repository)
      Matching Pair 2 Matches with Answer: Pear
      3. Save the question

      4. Re-edit the matching question named "fruit"
      DO NOT CHANGE ANY THING ON THE QUESTION
      5. Click "Save Page"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jmvedrine Jean-Michel Vedrine
              Reporter:
              sbourget Stephen Bourget
              Peer reviewer:
              Adrian Greeve
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Frédéric Massart
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                9/Mar/15