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

contribution create function doesn't check for error

    Details

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

      Description

      When I try to import contributions with duplicate transaction ids, I get an error:

      PHP Fatal error: Call to undefined method CRM_Core_Error::fields() in /var/aegir/platforms/poniatowska-ourpowerbase-d7-c4.2/sites/all/modules/civicrm/api/v3/utils.php on line 664

      It's because the api create function doesn't check to see if the object it is returning is an error or not.

        Attachments

          Activity

            People

            • Assignee:
              jamie Jamie McClelland
              Reporter:
              jamie Jamie McClelland
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: