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

Short Answer Question Responses Broken After 3.4.1 Update

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 3.4.1
    • Lesson
    • MOODLE_34_STABLE
    • MDL-61339-master
    • 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.   

      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

            Unassigned Unassigned
            rigwald Brian Rigwald
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:

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