From: Coleman Watts Date: Tue, 28 Jul 2015 17:29:24 +0000 (-0400) Subject: CRM-9474 - Simplify contribution page tab titles X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4be4743f2cc8ef24954c665923d4c7f849800806;p=civicrm-core.git CRM-9474 - Simplify contribution page tab titles --- diff --git a/CRM/Contribute/Form/ContributionPage/Amount.php b/CRM/Contribute/Form/ContributionPage/Amount.php index 5960551826..6a44a55e45 100644 --- a/CRM/Contribute/Form/ContributionPage/Amount.php +++ b/CRM/Contribute/Form/ContributionPage/Amount.php @@ -189,8 +189,6 @@ SELECT id */ public function setDefaultValues() { $defaults = parent::setDefaultValues(); - $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title'); - CRM_Utils_System::setTitle(ts('Contribution Amounts') . " ($title)"); if (empty($defaults['pay_later_text'])) { $defaults['pay_later_text'] = ts('I will send payment by check'); diff --git a/CRM/Contribute/Form/ContributionPage/Custom.php b/CRM/Contribute/Form/ContributionPage/Custom.php index e396a17966..bc1a27f8b9 100644 --- a/CRM/Contribute/Form/ContributionPage/Custom.php +++ b/CRM/Contribute/Form/ContributionPage/Custom.php @@ -90,11 +90,6 @@ class CRM_Contribute_Form_ContributionPage_Custom extends CRM_Contribute_Form_Co public function setDefaultValues() { $defaults = parent::setDefaultValues(); - if ($this->_id) { - $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title'); - CRM_Utils_System::setTitle(ts('Include Profiles') . " ($title)"); - } - $ufJoinParams = array( 'module' => 'CiviContribute', 'entity_table' => 'civicrm_contribution_page', diff --git a/CRM/Contribute/Form/ContributionPage/Premium.php b/CRM/Contribute/Form/ContributionPage/Premium.php index 5c843ee07f..5aff621081 100644 --- a/CRM/Contribute/Form/ContributionPage/Premium.php +++ b/CRM/Contribute/Form/ContributionPage/Premium.php @@ -43,8 +43,6 @@ class CRM_Contribute_Form_ContributionPage_Premium extends CRM_Contribute_Form_C public function setDefaultValues() { $defaults = array(); if (isset($this->_id)) { - $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title'); - CRM_Utils_System::setTitle(ts('Premiums') . " ($title)"); $dao = new CRM_Contribute_DAO_Premium(); $dao->entity_table = 'civicrm_contribution_page'; $dao->entity_id = $this->_id; diff --git a/CRM/Contribute/Form/ContributionPage/Settings.php b/CRM/Contribute/Form/ContributionPage/Settings.php index 9e62e59f4e..d45c7e13b3 100644 --- a/CRM/Contribute/Form/ContributionPage/Settings.php +++ b/CRM/Contribute/Form/ContributionPage/Settings.php @@ -51,12 +51,6 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_ $soft_credit_types = CRM_Core_OptionGroup::values('soft_credit_type', TRUE, FALSE, FALSE, NULL, 'name'); if ($this->_id) { - $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', - $this->_id, - 'title' - ); - CRM_Utils_System::setTitle(ts('Title and Settings') . " ($title)"); - $ufJoinParams = array( 'module' => 'OnBehalf', 'entity_table' => 'civicrm_contribution_page', @@ -90,8 +84,6 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_ } } else { - CRM_Utils_System::setTitle(ts('Title and Settings')); - $ufGroupDAO = new CRM_Core_DAO_UFGroup(); $ufGroupDAO->name = 'honoree_individual'; if ($ufGroupDAO->find(TRUE)) { diff --git a/CRM/Contribute/Form/ContributionPage/ThankYou.php b/CRM/Contribute/Form/ContributionPage/ThankYou.php index a110510d6c..72fff28502 100644 --- a/CRM/Contribute/Form/ContributionPage/ThankYou.php +++ b/CRM/Contribute/Form/ContributionPage/ThankYou.php @@ -44,8 +44,6 @@ class CRM_Contribute_Form_ContributionPage_ThankYou extends CRM_Contribute_Form_ * @return void */ public function setDefaultValues() { - $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title'); - CRM_Utils_System::setTitle(ts('Thank-you and Receipting') . " ($title)"); return parent::setDefaultValues(); } diff --git a/CRM/Friend/Form/Contribute.php b/CRM/Friend/Form/Contribute.php index ae5ab6ebe3..6e6fba8ca5 100644 --- a/CRM/Friend/Form/Contribute.php +++ b/CRM/Friend/Form/Contribute.php @@ -58,9 +58,6 @@ class CRM_Friend_Form_Contribute extends CRM_Contribute_Form_ContributionPage { * @return void */ public function setDefaultValues() { - $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title'); - CRM_Utils_System::setTitle(ts('Tell a Friend') . " ($title)"); - $defaults = array(); if (isset($this->_id)) {