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

Announcement entity endpoint should not return draft annoncements

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.6, 20.0 [Tentative]
    • Fix Version/s: 12.7, 19.1, 20.0 [Tentative]
    • Component/s: Announcements
    • Labels:
      None
    • 19 status:
      Verified
    • 12 status:
      Verified
    • Test Plan:
      Hide

      See description below.

      Show
      See description below.

      Description

      Can replicate as admin user in a course site:

       

      1) Add Announcements and Lessons

      2) Add 2 announcements. Make one of them a draft

      3) Add Lessons and embed announcements into Lessons

      Result: will receive Javascript error in Console because the draft announcement does not have a creator

       

      Uncaught TypeError: Cannot read property 'replace' of null
          at Object.<anonymous> (announcements.js?version=12.5:42)
          at Function.each (jquery-1.9.1.min.js?version=12.5:3)
          at init.each (jquery-1.9.1.min.js?version=12.5:3)
          at Object.success (announcements.js?version=12.5:32)
          at c (jquery-1.9.1.min.js?version=12.5:3)
          at Object.fireWith [as resolveWith] (jquery-1.9.1.min.js?version=12.5:3)
          at k (jquery-1.9.1.min.js?version=12.5:5)
          at XMLHttpRequest.r (jquery-1.9.1.min.js?version=12.5:5)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ottenhoff Sam Ottenhoff
                Reporter:
                ottenhoff Sam Ottenhoff
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code