if ($field == NULL || $field === '') {
continue;
}
- if (is_array($field)) {
+ // CRM-17040, Considering only primary contact when importing contributions. So contribution inserts into primary contact
+ // instead of soft credit contact.
+ if (is_array($field) && $key != "soft_credit") {
foreach ($field as $value) {
$break = FALSE;
if (is_array($value)) {