Skip to content

Commit

Permalink
Merge pull request #26506 from larssandergreen/Reduce-PHP-warnings-on…
Browse files Browse the repository at this point in the history
…-Contribution

Reduce PHP warnings on Contribution
  • Loading branch information
demeritcowboy authored Jun 12, 2023
2 parents fc76317 + bfa02b4 commit 53a9bfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CRM/Contribute/Form/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -850,9 +850,11 @@ public function buildQuickForm() {
$trxnId->freeze();
}
$financialType->freeze();
$this->assign('freezeFinancialType', TRUE);
$freezeFinancialType = TRUE;

}
}
$this->assign('freezeFinancialType', $freezeFinancialType ?? FALSE);

if ($this->_action & CRM_Core_Action::VIEW) {
$this->freeze();
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Contribute/Form/Contribution.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{elseif $contactId}
{ts 1=$displayName}Use this form to submit a new contribution on behalf of %1.{/ts}
{else}
{ts 1=$displayName}Use this form to submit a new contribution.{/ts}
{ts}Use this form to submit a new contribution.{/ts}
{/if}
{if $contributionMode == 'live'}
{ts}<strong>A LIVE transaction will be submitted</strong> using the selected payment processor.{/ts}
Expand Down
2 changes: 1 addition & 1 deletion templates/CRM/Core/BillingBlock.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{/foreach}
</div>
</fieldset>
{if $paymentAgreementTitle}
{if !$isBackOffice && $paymentAgreementTitle}
<div id="payment_notice">
<fieldset class="crm-public-form-item crm-group payment_notice-group">
<legend>{$paymentAgreementTitle}</legend>
Expand Down

0 comments on commit 53a9bfd

Please sign in to comment.