From 83078286de1dae84cfd609349f3ead29a9b3dae8 Mon Sep 17 00:00:00 2001 From: Patrick Figel Date: Thu, 22 Aug 2019 22:27:52 +0200 Subject: [PATCH] dev/financial#66 - Fix missing contribution ID for AdditionalInfo This fixes an issues where the contribution ID is not being passed when the AdditionalInfo form block is retrieved in the contribution form. This causes existing values of fields in this block to not be loaded, leading to data loss when the form is saved. --- templates/CRM/Contribute/Form/Contribution.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index f412e28fe3..bb6483ebf1 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -364,7 +364,7 @@ }); // load panes function calls for snippet based on id of crm-accordion-header function loadPanes( id ) { - var url = "{/literal}{crmURL p='civicrm/contact/view/contribution' q='snippet=4&formType=' h=0}{literal}" + id; + var url = "{/literal}{crmURL p='civicrm/contact/view/contribution' q="snippet=4&id=`$entityID`&formType=" h=0}{literal}" + id; {/literal} {if $contributionMode} url = url + "&mode={$contributionMode}"; -- 2.25.1