From 65fb44a1228014f76eba8f487bb1671a61416229 Mon Sep 17 00:00:00 2001 From: Justin Freeman Date: Mon, 12 Jun 2017 12:10:53 +1000 Subject: [PATCH 1/2] CIVICRM-125 CRM-20718 Use the "On behalf of" profile title as fieldset title on Contribution pages instead of hardcoded title "Organization Details" --- CRM/Contribute/Form/ContributionBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index 354522419cd3..0cbf39f7d3d0 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -893,7 +893,7 @@ public function buildComponentForm($id, $form) { } } - $form->assign('fieldSetTitle', ts('Organization Details')); + $form->assign('fieldSetTitle', CRM_Core_BAO_UFGroup::getTitle($form->_values['onbehalf_profile_id'])); if (CRM_Utils_Array::value('is_for_organization', $form->_values)) { if ($form->_values['is_for_organization'] == 2) { From 8bf67b7dcf8a68afa844062e89c0179e70ba3007 Mon Sep 17 00:00:00 2001 From: Agileware Date: Wed, 14 Jun 2017 07:18:52 +1000 Subject: [PATCH 2/2] Add ts() to getTitle --- CRM/Contribute/Form/ContributionBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contribute/Form/ContributionBase.php b/CRM/Contribute/Form/ContributionBase.php index 0cbf39f7d3d0..fe5b484c0d79 100644 --- a/CRM/Contribute/Form/ContributionBase.php +++ b/CRM/Contribute/Form/ContributionBase.php @@ -893,7 +893,7 @@ public function buildComponentForm($id, $form) { } } - $form->assign('fieldSetTitle', CRM_Core_BAO_UFGroup::getTitle($form->_values['onbehalf_profile_id'])); + $form->assign('fieldSetTitle', ts(CRM_Core_BAO_UFGroup::getTitle($form->_values['onbehalf_profile_id']))); if (CRM_Utils_Array::value('is_for_organization', $form->_values)) { if ($form->_values['is_for_organization'] == 2) {