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

incorrect results for contribution get

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.2
    • Fix Version/s: 4.0.7
    • Component/s: CiviContribute, CiviCRM API
    • Labels:
      None

      Description

      Using api explorer to try to retrieve a contribution 16509, I get the following:
      for /civicrm/ajax/rest?debug=1&version=3&entity=Contribution&action=get&id=16509:
      <?xml version="1.0"?>
      <ResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <Result>
      </Result>
      <Result>
      <0>id</0>
      </Result>
      <Result>
      </Result>
      <Result>
      </Result>
      <Result>
      </Result>
      </ResultSet>

      For /civicrm/ajax/rest?debug=1&version=3&entity=Contribution&action=get&entity_id=16509 (note the change from id to entity_id, I get about a dozen contributions, including the one requested.

        Attachments

          Activity

            People

            • Assignee:
              erikhommel Erik Hommel
              Reporter:
              joemurray Joe Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: