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

Errors when updating matching questions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.8.4
    • 2.8.3, 2.9
    • Lesson
    • MOODLE_28_STABLE, MOODLE_29_STABLE
    • MOODLE_28_STABLE
    • 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

      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"

            jmvedrine Jean-Michel Vedrine
            sbourget Stephen Bourget
            Adrian Greeve Adrian Greeve
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.