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

Matching Question in Lesson Activity does not show correct or incorrect response.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.4
    • Fix Version/s: None
    • Component/s: Lesson
    • Labels:
      None
    • Affected Branches:
      MOODLE_34_STABLE

      Description

      We are seeing the issue originally reported in ticket MDL-62809:

      I created a lesson activity in Moodle 3.3.4 with only one Matching Question. I hand typed the text into the fields to make sure the issue was not coming from Word related text being copied and pasted. However, when the question is attempted it never shows either correct or incorrect response.

      When I enable Debug mode and attempt the question I get the message below,

      "Warning: Invalid argument supplied for foreach() in /var/www/html/moodle/mod/lesson/locallib.php on line 4105"

      We are seeing this also in Moodle 3.4.1. A lesson has a matching question with 5 items. Whether they all match or not, on hitting Submit we get this warning, and the "Correct Response" and "Wrong response" messages are not shown as expected.

      Warning: Invalid argument supplied for foreach() in /var/www/html/noncredit/mod/lesson/locallib.php on line 4135
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: