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

Short Answer Question Responses Broken After 3.4.1 Update

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.4.1
    • Fix Version/s: None
    • Component/s: Lesson
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as Admin.
      2. Enable Developer mode.
        • Go to Site administration > Development > Debugging.
        • Set "Debug messages" = "DEVELOPER: extra Moodle debug messages for developers".
        • Save changes.
      3. Create a Course.
      4. Enrol Students to the Course.
      5. Create Lesson activity into the Course.
      6. Add "Short answer" question to the Lesson. 
        • Add several Answers with responses (Follow the same pattern as displayed in Expected Response Example 1.JPG).
          • Check the source code of the response in the textarea editor and make sure that "<br>" tag is present.
        • Save page.
      7. Log in as a Student enrolled into the Course.
      8. Attempt the Lesson.
      9. Answer the short answer question.
        • make sure an error is NOT displayed.
        • make sure the answers and response are displayed.  
      Show
      Log in as Admin. Enable Developer mode. Go to Site administration > Development > Debugging. Set "Debug messages" = "DEVELOPER: extra Moodle debug messages for developers". Save changes. Create a Course. Enrol Students to the Course. Create Lesson activity into the Course. Add "Short answer" question to the Lesson.  Add several Answers with responses (Follow the same pattern as displayed in  Expected Response Example 1.JPG ). Check the source code of the response in the textarea editor and make sure that "<br>" tag is present. Save page. Log in as a Student enrolled into the Course. Attempt the Lesson. Answer the short answer question. make sure an error is NOT displayed. make sure the answers and response are displayed.   
    • Affected Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-61339-master

      Description

      NOTE:  I am not an admin.  I am a teacher who relies heavily on the Lesson module.  

       

      When answering a short answer question in a lesson, students receive to feedback.  Often the actually answer is not displayed after submitted.  Our network admin reported that an error appears in debugging:

       

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

      Line 4135 of locallib.php is:

      foreach ($studentanswerresponse as $answer => $response) {

       

      Related to:  https://tracker.moodle.org/browse/MDL-61211

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Geshoski Mihail Geshoski
                Reporter:
                rigwald Brian Rigwald
                Peer reviewer:
                Adrian Greeve
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: