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.