From: Patrick Figel Date: Thu, 22 Aug 2019 20:27:52 +0000 (+0200) Subject: dev/financial#66 - Fix missing contribution ID for AdditionalInfo X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=83078286de1dae84cfd609349f3ead29a9b3dae8;p=civicrm-core.git 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. --- 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}";