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

Quiz with " " in title and 'Expect completed on:' enabled leads to SyntaxError in dashboard for participants

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.6.5, 3.7.1
    • Dashboard (My home), Quiz
    • None
    • MOODLE_36_STABLE, MOODLE_37_STABLE

      When a quiz has "" in title, and a "Expect completed on:" date set which should display in calendar, the dashboard gives a

      JSON.parse: expected ',' or '}' after property value in object at line 1 column 20 of the JSON data
      File: …/lib/requirejs.php/1567170273/core/first.js
       
      error.
       
      To reproduce:

      • As teacher, create a quiz with
        • "" in the title
        • Set "Expect completed on:" date and "Enable" that one.
      • As student, go to your dashboard.

        1. qa.png
          qa.png
          141 kB
        2. SyntaxError.png
          SyntaxError.png
          278 kB

            lucaboesch Luca Bösch
            lucaboesch Luca Bösch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.