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

Block_timeline cause a JSON parse error on dashboard when activities are saved with double quote

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.7.1
    • Assignment, Blocks
    • None
    • MOODLE_37_STABLE
    • Hide

      Removing double quote from the title.

      Show
      Removing double quote from the title.
    • Hide
      • Create an activity Assignment
      • name it with the double quote :
        "c'est le devoir"
      • put a description
      • enable "Due date" by check-in it put it some days in the future
      • enable "Remind me to grade by" by check-in it put it some days in the future
      • Go to the dashbord with the block timeline displayed
      • And you should get the json error as a popup
      Show
      Create an activity Assignment name it with the double quote : "c'est le devoir" put a description enable "Due date" by check-in it put it some days in the future enable "Remind me to grade by" by check-in it put it some days in the future Go to the dashbord with the block timeline displayed And you should get the json error as a popup

      The error appear when you put double quote in an activity name and the activity should appear in the timeline in the dashboard.

       

      The error is:

      JSON.parse: expected ',' or '}' after property value in object at line 1 column 31 of the JSON data
      File:
      https://mymoodleurl/lib/requirejs.php/1571905239/core/first.js
      Line:
      57

      n: 3233
      https://mymoodleurl/lib/requirejs.php
      y.prototype.stringHelper

      (The patch for that one is applied MDL-65183

      https://tracker.moodle.org/browse/MDL-65183?focusedCommentId=673435&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-673435 I hoped it solved the problem)

            Unassigned Unassigned
            palumbo Dominique
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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