From: Christian Wach Date: Thu, 15 Nov 2018 13:16:03 +0000 (+0000) Subject: Use tab title in feedback message X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b2c44dce7b8f786f0bfffa270dad1995f932d1aa;p=civicrm-core.git Use tab title in feedback message --- diff --git a/CRM/Contribute/Form/ContributionPage.php b/CRM/Contribute/Form/ContributionPage.php index b03e72fdf7..65173bec6f 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 = CRM_Utils_Request::retrieveComponent($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();