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

Messages: Console TypeError when removing an attachment

    XMLWordPrintable

    Details

    • 20 status:
      Verified
    • 19 status:
      Verified
    • 12 status:
      Please Merge
    • Test Plan:
      Hide
      1. Open your browser console
      2. Add messages to your site
      3. Click on Messages - > Compose
      4. Add a recipient, subject and body
      5. Add an attachment
      6. After the message form displays again with the attachment, click Remove beside the attachment
      7. Check your browser console for an error message (expected: no error)
      8. Click Send
      9. Verify the removed attachment is not present in the sent message
      Show
      Open your browser console Add messages to your site Click on Messages - > Compose Add a recipient, subject and body Add an attachment After the message form displays again with the attachment, click Remove beside the attachment Check your browser console for an error message (expected: no error) Click Send Verify the removed attachment is not present in the sent message

      Description

      I tested in both Chrome and Firefox and see the console error in both places when removing an attachment. It does not seem to affect the user and the attachment is removed.

      Chrome error:

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

      Firefox error:

      TypeError: document.forms[0].onsubmit is not a functioncompose:1:19
          onfocus https://trunk-mysql.nightly.sakaiproject.org/portal/site/7fb2ee12-4943-44ac-9f04-142b1f106794/tool/d0d547c3-b64b-40d5-9820-0d5ad91f17a3/compose:1

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration