From 7fbf76e356536ea8d1b9de17e5d700ebb5c3f09e Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 30 Nov 2023 01:54:20 +1300 Subject: [PATCH] Ensure onBehalfProfile assigned --- CRM/Contribute/Form/Contribution/ThankYou.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contribute/Form/Contribution/ThankYou.php b/CRM/Contribute/Form/Contribution/ThankYou.php index 97929b43b2..9e523109ce 100644 --- a/CRM/Contribute/Form/Contribution/ThankYou.php +++ b/CRM/Contribute/Form/Contribution/ThankYou.php @@ -197,6 +197,9 @@ class CRM_Contribute_Form_Contribution_ThankYou extends CRM_Contribute_Form_Cont $this->buildCustom($this->_values['onbehalf_profile_id'], 'onbehalfProfile', TRUE, 'onbehalf', $fieldTypes); } + else { + $this->assign('onbehalfProfile'); + } $this->_trxnId = $this->_params['trxn_id'] ?? NULL; -- 2.25.1