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

Forums: Browser console error when removing an attachment from a forum or topic

    XMLWordPrintable

    Details

    • 19 status:
      Verified
    • Test Plan:
      Hide

      The error displays whether the attachment has been added from resources or from your desktop. Open the browser console for this test:

      1. Click on Forums
      2. Click on Forum Settings
      3. Add an attachment and save
      4. Click on Forum Settings again
      5. Click to remove the attachment - currently error displays in the browser console

      Repeat the steps above for the topic and topic settings

      Show
      The error displays whether the attachment has been added from resources or from your desktop. Open the browser console for this test: Click on Forums Click on Forum Settings Add an attachment and save Click on Forum Settings again Click to remove the attachment - currently error displays in the browser console Repeat the steps above for the topic and topic settings

      Description

      When removing an attachment from the Forum or a forum topic, an error displays in the browser console. 

      Chrome
      dfReviseTopicSettingsAttach:1006 Uncaught TypeError: document.forms[0].onsubmit is not a function
      at HTMLAnchorElement.onfocus (dfReviseTopicSettingsAttach:1006)
      onfocus @ dfReviseTopicSettingsAttach:1006

      Firefox:
      TypeError: document.forms[0].onsubmit is not a functiondfReviseTopicSettingsAttach:1:19
      onfocus https://trunk-mysql.nightly.sakaiproject.org/portal/site/AJLD_004C_4292/tool/80cceb2b-5593-4d90-8566-04aab6cb3c30/dfReviseTopicSettingsAttach:1

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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bergarvi Bernardo Garcia Vila
                  Reporter:
                  agschmidt Andrea Schmidt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code