Skip to content

Commit

Permalink
Merge pull request colemanw#139 from colemanw/notice_fix
Browse files Browse the repository at this point in the history
DRU-2966760 - Fix Notice
  • Loading branch information
KarinG authored May 28, 2018
2 parents 26b8c2e + 6efe978 commit a992df4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions includes/wf_crm_webform_postprocess.inc
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,9 @@ class wf_crm_webform_postprocess extends wf_crm_webform_base {
*/
private function saveContactLocation($contact, $cid, $c) {
// Check which location_type_id is to be set as is_primary=1;
$is_primary_address_location_type = $contact['address'][1]['location_type_id'];
$is_primary_email_location_type = $contact['email'][1]['location_type_id'];
$is_primary_address_location_type = wf_crm_aval($contact, 'address:1:location_type_id');
$is_primary_email_location_type = wf_crm_aval($contact, 'email:1:location_type_id');

foreach (wf_crm_location_fields() as $location) {
if (!empty($contact[$location])) {
$existing = array();
Expand Down Expand Up @@ -2130,7 +2131,7 @@ class wf_crm_webform_postprocess extends wf_crm_webform_base {
if (!empty($lineItemRecord->tax_amount)) {
CRM_Financial_BAO_FinancialItem::add($lineItemRecord, $contributionResult, TRUE);
}

// Create participant/membership payment records
if (isset($item['membership_id']) || isset($item['participant_id'])) {
$type = isset($item['participant_id']) ? 'participant' : 'membership';
Expand Down

0 comments on commit a992df4

Please sign in to comment.