From f6a9354465791dc8e08f98e2841753bb712b37b9 Mon Sep 17 00:00:00 2001 From: Jude Hungerford Date: Mon, 30 Jul 2018 14:07:16 +1000 Subject: [PATCH] Add defaults to resetFields call when creating new contact in webform_civicrm_forms.js, solving missing CiviCRM defaults bug. --- js/webform_civicrm_forms.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/webform_civicrm_forms.js b/js/webform_civicrm_forms.js index b03650e94..377f6939d 100644 --- a/js/webform_civicrm_forms.js +++ b/js/webform_civicrm_forms.js @@ -12,7 +12,7 @@ var wfCivi = (function ($, D) { pub.existingSelect = function (num, nid, path, toHide, hideOrDisable, showEmpty, cid, fetch, defaults) { if (cid.charAt(0) === '-') { - resetFields(num, nid, true, 'show', toHide, hideOrDisable, showEmpty, 500); + resetFields(num, nid, true, 'show', toHide, hideOrDisable, showEmpty, 500, defaults); // Fill name fields with name typed if (cid.length > 1) { var names = {first: '', last: ''};