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

Hook doesn't run with v3 API extern REST interface

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.4.0
    • Component/s: CiviCRM API
    • Labels:

      Description

      When using the extern REST v3 API (/sites/all/modules/civicrm/extern/rest.php), hooks do not run. This is because the CMS Bootstrap is not loaded. This happens when the 'q' ('civicrm/<entity>/<action>) request parameter is not provided. However, the 'q' parameter should not be necessary for v3; entity and action parameters should be useable instead. I have attached a file with a proposed fix within loadCMSBootstrap(). The modified file is based on the 4.1.3 release.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                erikhommel Erik Hommel
                Reporter:
                dennis Dennis Cox
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: