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

API chaining doesn't work with Contributions

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 4.7.8
    • Fix Version/s: None
    • Component/s: CiviCRM API
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      When using the contributions API like this:

      CRM.api3('Contribution', 'getfields', {
        "sequential": 1,
        "api_action": "create",
        "api.Contribution.getoptions": {"field":"$value.name"}
      })

      the result is the same as using it like this:

      CRM.api3('Contribution', 'getfields', {
        "sequential": 1,
        "api_action": "create"
      })

      In other words the API chaining doesn't have any effect. This is also evident from the API explorer.

      I have found this to be the case on Civi 4.7.8 on Drupal.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adamhillier Adam Hillier
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: