CRM-13551 : fix for point 'a)' mentioned in issue - the json object was not properly...
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Tue, 8 Oct 2013 12:49:45 +0000 (18:19 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Wed, 9 Oct 2013 10:48:00 +0000 (16:18 +0530)
----------------------------------------
* CRM-13551: Fix bug in Activity Form
  http://issues.civicrm.org/jira/browse/CRM-13551

templates/CRM/Contact/Form/NewContact.tpl

index 808e138d27b01b9d0956317866efd77aee8bfb35..dbbd3d1abd8ff574fe00621af7a6e02403748de8 100644 (file)
     // 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}