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

JS error when deleting a comment in learning plan page

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1
    • None
    • Competencies
    • MOODLE_31_STABLE
    • MDL-53347-master
    • Hide
      1. Go to a user's learning plan page.
      2. Create a comment.
      3. Open the browser's JS console.
      4. Delete a comment.
        • Confirm that the comment gets deleted.
        • Confirm that there is no JS error displayed.
      5. Refresh the page.
        • Confirm that the deleted comment is never displayed.
      Show
      Go to a user's learning plan page. Create a comment. Open the browser's JS console. Delete a comment. Confirm that the comment gets deleted. Confirm that there is no JS error displayed. Refresh the page. Confirm that the deleted comment is never displayed.
    • CBE Sprint 6

    Description

      When deleting a comment on the user's learning plan page, the following JS error occur:

      comment.js:264 Uncaught TypeError: Cannot read property 'setStyle' of null
      

      The comment gets deleted, but the comment remains in the UI unless the page is refreshed.

      This does not seem to occur in the user competency pages though.

      Attachments

        Issue Links

          Activity

            People

              jpataleta Jun Pataleta
              jpataleta Jun Pataleta
              Frédéric Massart Frédéric Massart
              Jean-Philippe Gaudreau, Steve Massicotte, Serge Gauthier, Issam Taboubi, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: