Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7954

Allow direct URL calls to REST::ajax if debug is enabled

    Details

    • Type: Task
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.0
    • Fix Version/s: 3.4.1
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Currently there's no decent way to debug ajax calls that load into widgets (e.g. contactListQuery for autocomplete) because we've appropriately blocked calls to CRM_Utils_REST:ajax that aren't made by javascript clients.

      However, sometimes developers need to debug results of these calls in the browser. I've modifed ajax() to allow direct calls via URL if CiviCRM debug is enabled ($config->debug is true).

      Lobo and I also noticed several spots in REST.php where the $config object was being passed around, but never used. I've cleaned up / removed those references / parameters.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: