From a903a8fb230645b6efda8488b3e2ddc480be9b24 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Thu, 25 Jun 2015 17:05:30 -0700 Subject: [PATCH] CRM-16747 - Include missing ContactReference.tpl in OnBehalf profile form template. ---------------------------------------- * CRM-16747: Contact Reference fields do not work in profiles present on "On Behalf Of" Contribution pages. https://issues.civicrm.org/jira/browse/CRM-16747 --- .../CRM/Contribute/Form/Contribution/OnBehalfOf.tpl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl b/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl index c94db9ab75..1f44085988 100644 --- a/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl +++ b/templates/CRM/Contribute/Form/Contribution/OnBehalfOf.tpl @@ -109,6 +109,9 @@ {$form.onbehalf.$fieldName.html} {if !empty($onBehalfOfFields.$fieldName.html_type) && $onBehalfOfFields.$fieldName.html_type eq 'Autocomplete-Select'} {assign var=elementName value=onbehalf[$fieldName]} + {if $onBehalfOfFields.$fieldName.data_type eq 'ContactReference'} + {include file="CRM/Custom/Form/ContactReference.tpl" element_name = $elementName} + {/if} {/if} {if $onBehalfOfFields.$fieldName.name|substr:0:5 eq 'phone'} {assign var="phone_ext_field" value=$onBehalfOfFields.$fieldName.name|replace:'phone':'phone_ext'} @@ -116,9 +119,9 @@  {$form.onbehalf.$phone_ext_field.html} {/if} {/if} - {if $onBehalfOfFields.$fieldName.data_type eq 'Date'} - {assign var=elementName value=onbehalf[$fieldName]} - {include file="CRM/common/jcalendar.tpl" elementName=$elementName elementId=onbehalf_$fieldName} + {if $onBehalfOfFields.$fieldName.data_type eq 'Date'} + {assign var=elementName value=onbehalf[$fieldName]} + {include file="CRM/common/jcalendar.tpl" elementName=$elementName elementId=onbehalf_$fieldName} {/if} {if $onBehalfOfFields.$fieldName.help_post}
{$onBehalfOfFields.$fieldName.help_post} -- 2.25.1