From bf1fddddb95b4a0e5d89e1b5f954ddb240c88a5b Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Tue, 8 Oct 2013 18:19:45 +0530 Subject: [PATCH] CRM-13551 : fix for point 'a)' mentioned in issue - the json object was not properly getting created ---------------------------------------- * CRM-13551: Fix bug in Activity Form http://issues.civicrm.org/jira/browse/CRM-13551 --- templates/CRM/Contact/Form/NewContact.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/CRM/Contact/Form/NewContact.tpl b/templates/CRM/Contact/Form/NewContact.tpl index 808e138d27..dbbd3d1abd 100644 --- a/templates/CRM/Contact/Form/NewContact.tpl +++ b/templates/CRM/Contact/Form/NewContact.tpl @@ -112,7 +112,10 @@ // setdefaults incase of formRule {/literal} {if $selectedContacts} - {literal} var prePopulateData = cj.ajax({ url: contactUrl + "&cid={/literal}{$selectedContacts}{literal}", async: false }).responseText;{/literal} + {literal} + var prePopulateData = cj.ajax({ url: contactUrl + "&cid={/literal}{$selectedContacts}{literal}", async: false }).responseText; + prePopulateData = cj.parseJSON(prePopulateData); + {/literal} {/if} {literal} -- 2.25.1