From bdd59b99994b840a77e6b897ccdc47717c27a267 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Fri, 4 Feb 2022 19:39:03 +0000 Subject: [PATCH] Remove unused invalidProfiles variable, and simplify template. As well as simplifying things, this avoids PHP notices. --- .../Form/ContributionPage/Settings.tpl | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/templates/CRM/Contribute/Form/ContributionPage/Settings.tpl b/templates/CRM/Contribute/Form/ContributionPage/Settings.tpl index b9eadf760c..082f334b82 100644 --- a/templates/CRM/Contribute/Form/ContributionPage/Settings.tpl +++ b/templates/CRM/Contribute/Form/ContributionPage/Settings.tpl @@ -43,19 +43,13 @@ {capture assign="profileURL"}{crmURL p='civicrm/admin/uf/group' q='reset=1'}{/capture} - {if $invalidProfiles} - {ts 1=$profileURL}You must configure a valid organization profile in order to allow individuals to contribute on behalf of an organization. Valid profiles include Contact and / or Organization fields, and may include Contribution and Membership fields.{/ts} - {else} - {ts 1=$profileURL}To change the organization data collected use the "On Behalf Of Organization" profile (Administer > Customize Data and Screens > Profiles).{/ts} - {/if} + {ts 1=$profileURL}To change the organization data collected use the "On Behalf Of Organization" profile (Administer > Customize Data and Screens > Profiles).{/ts} - {if !$invalidProfiles} - - {$form.onbehalf_profile_id.label} - {$form.onbehalf_profile_id.html} - - {/if} + + {$form.onbehalf_profile_id.label} + {$form.onbehalf_profile_id.html} + {$form.for_organization.label} {$form.for_organization.html}
@@ -141,12 +135,12 @@ {$form.is_share.html} {$form.is_share.label} {help id="id-is_share"} -   +   {$form.is_active.html} {$form.is_active.label} {if $contributionPageID} -   +   {if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'} {ts}When your page is active, you can link people to the page by copying and pasting the following URL:{/ts}
-- 2.25.1