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

block_timeline causes JSON parse error when activity name contains quotes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.5, 3.7.1
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:

      Description

      The following error message (caused by block_timeline) appears when it has to show a due date of an activity or course name that contains at least two double quotes:

      JSON.parse: expected ',' or '}' after property value in object at line 1 column 21 of the JSON data

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                38 Vote for this issue
                Watchers:
                27 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h