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

ajax requests with data containing "??" get mangled by jquery $.ajax

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.9.5, 3.0.3
    • 2.8.10, 2.9.4, 3.0.2
    • JavaScript

      ajax requests with data containing "??" gets mangled by jquery $.ajax
      refs:

      can be fixed by adding

      contentType: "application/json"
      

      or alternatively

       jsonp:false 
      

      to var settings in lib/amd/src/ajax.js:~145

      or by sending an object and letting jquery stringify itself, but this didnt work when i tested it.
      testing example
      admin/tool/templatelibrary/index.php
      type

      ???
      

      into the search box it will create an error.

            berserkk Ben Kelada
            berserkk Ben Kelada
            Dan Poltawski Dan Poltawski
            Andrew Lyons Andrew Lyons
            Ryan Wyllie Ryan Wyllie
            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.