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

Gradebook: console displays SyntaxError if no hidden items

    XMLWordPrintable

    Details

    • 19 status:
      Resolved
    • 12 status:
      Please Merge
    • Test Plan:
      1. You will need a site with a Gradebook
      2. Open the browser console
      3. Click Gradebook on the navigation menu
      4. Watch for errors in the browser console

      Description

      This does not affect 19. With the browser console open, click on Gradebook. I haven't noticed any user-facing problems (yet).

      Firefox error:

      SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data gradebook-gbgrade-table.js:27:26

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

      Chrome error:

      gradebook-gbgrade-table.js?version=:27 Uncaught (in promise) SyntaxError: Unexpected token u in JSON at position 0
      at JSON.parse (<anonymous>)
      at gradebook-gbgrade-table.js?version=:27
      (anonymous) @ gradebook-gbgrade-table.js?version=:27
      Promise.then (async)
      (anonymous) @ gradebook-gbgrade-table.js?version=:25
      Promise.then (async)
      (anonymous) @ gradebook-gbgrade-table.js?version=:23

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  a.fish@lancaster.ac.uk Adrian Fish
                  Reporter:
                  agschmidt Andrea Schmidt
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code