From cdfd4ac5f207e815e26360aceaed4e9450d525e9 Mon Sep 17 00:00:00 2001 From: Christian Wach Date: Thu, 15 Nov 2018 13:16:03 +0000 Subject: [PATCH] Use tab title in feedback message --- CRM/Contribute/Form/ContributionPage.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Contribute/Form/ContributionPage.php b/CRM/Contribute/Form/ContributionPage.php index bc3f23d03e..cdd2ba2f3d 100644 --- a/CRM/Contribute/Form/ContributionPage.php +++ b/CRM/Contribute/Form/ContributionPage.php @@ -392,7 +392,6 @@ class CRM_Contribute_Form_ContributionPage extends CRM_Core_Form { case 'Contribute': $attributes = $this->getVar('_attributes'); $subPage = strtolower(basename(CRM_Utils_Array::value('action', $attributes))); - $subPageName = ucfirst($subPage); if ($subPage == 'friend') { $nextPage = 'custom'; } @@ -403,13 +402,11 @@ class CRM_Contribute_Form_ContributionPage extends CRM_Core_Form { case 'MembershipBlock': $subPage = 'membership'; - $subPageName = 'MembershipBlock'; $nextPage = 'thankyou'; break; default: $subPage = strtolower($className); - $subPageName = $className; $nextPage = strtolower($nextPage); if ($subPage == 'amount') { @@ -422,7 +419,7 @@ class CRM_Contribute_Form_ContributionPage extends CRM_Core_Form { } CRM_Core_Session::setStatus(ts("'%1' information has been saved.", - array(1 => $subPageName) + array(1 => CRM_Utils_Array::value('title', CRM_Utils_Array::value($subPage, $this->get('tabHeader')), $className)) ), ts('Saved'), 'success'); $this->postProcessHook(); -- 2.25.1