Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-42522

Quizzes: Uncaught TypeError for student when exposing rich text editor

    XMLWordPrintable

    Details

    • 19 status:
      Resolved
    • Test Plan:
      Hide
      1. Create a quiz with a short answer/essay question
      2. Publish the quiz
      3. As the student, with the browser console open, log in (You may need to go into the options, gear icon in Chrome, and click "Preserve Log")
      4. Take the quiz and click to Show the rich text editor
      5. Type some text 
      6. Click Submit for grading
      7. Check the console for errors

      This code is related to the Hot Spot question. If testing the fix for this (based on the plan) you should also add a Hot Spot question to verify that still saves as expected.

       

      Show
      Create a quiz with a short answer/essay question Publish the quiz As the student, with the browser console open, log in (You may need to go into the options, gear icon in Chrome, and click "Preserve Log") Take the quiz and click to Show the rich text editor Type some text  Click Submit for grading Check the console for errors This code is related to the Hot Spot question. If testing the fix for this (based on the plan) you should also add a Hot Spot question to verify that still saves as expected.  

      Description

      In a quiz with a short answer/essay question, if the student exposes the rich text editor, there is a console error, This does not seem to affect anything user-facing.

      Chrome 20:
      deliverAssessment:1158 Uncaught TypeError: dynamicListMap[key].serializeElements is not a function
      at serializeImagePoints (deliverAssessment:1158)
      at HTMLFormElement.onsubmit (deliverAssessment:833)
      serializeImagePoints @ deliverAssessment:1158
      onsubmit @ deliverAssessment:833

      Firefox 20:
      TypeError: dynamicListMap[key].serializeElements is not a function deliverAssessment:1158:24
      serializeImagePoints https://trunk-mysql.nightly.sakaiproject.org/portal/site/d60d1e7e-3a05-4402-98be-8a4a36fe06b5/tool/ed6736a1-7cd1-4e3c-9dce-feca6e3c2947/jsf/delivery/deliverAssessment:1158
      onsubmit https://trunk-mysql.nightly.sakaiproject.org/portal/site/d60d1e7e-3a05-4402-98be-8a4a36fe06b5/tool/ed6736a1-7cd1-4e3c-9dce-feca6e3c2947/jsf/delivery/deliverAssessment:1

      Learn More link: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Not_a_function

      Firefox 19.2:
      TypeError: dynamicListMap[key].serializeElements is not a function deliverAssessment:1518:24
      serializeImagePoints https://qa19-mysql.nightly.sakaiproject.org/portal/site/fb72beea-7ade-4ff6-bb4f-a1127afc8426/tool/154f9c01-09a4-4ee2-945d-ff74b74f3459/jsf/delivery/deliverAssessment:1518
      onsubmit https://qa19-mysql.nightly.sakaiproject.org/portal/site/fb72beea-7ade-4ff6-bb4f-a1127afc8426/tool/154f9c01-09a4-4ee2-945d-ff74b74f3459/jsf/delivery/deliverAssessment:1

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  agschmidt Andrea Schmidt
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration