Skip to content

Commit

Permalink
Issue #2948459: address fields don't update...
Browse files Browse the repository at this point in the history
This fixes the issue of address fields that won't update with CiviCRM 4.7.28. Maybe some other changes are still required regarding this module's usage of null values. 

However, it seems that core is set to also accept `'null'` strings soon along with `NULL` values... 

https://www.drupal.org/project/webform_civicrm/issues/2948459
civicrm/civicrm-core#11324
  • Loading branch information
urlisse authored Mar 20, 2018
1 parent 3e716f1 commit b6eb10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wf_crm_webform_postprocess.inc
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ class wf_crm_webform_postprocess extends wf_crm_webform_base {
continue;
}
// Reset calculated values when updating an address
$params['master_id'] = $params['geo_code_1'] = $params['geo_code_2'] = 'null';
$params['master_id'] = $params['geo_code_1'] = $params['geo_code_2'] = NULL;
}
$params['contact_id'] = $cid;
if (!empty($existing[$i])) {
Expand Down

0 comments on commit b6eb10b

Please sign in to comment.