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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.6.5, 3.7.1
    • Fix Version/s: None
    • Component/s: Dashboard (My home), Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE, MOODLE_37_STABLE

      Description

      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.

        Attachments

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

          Issue Links

            Activity

              People

              Assignee:
              lucaboesch Luca Bösch
              Reporter:
              lucaboesch Luca Bösch
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Tim Hunt, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: