CRM-9474 - Simplify contribution page tab titles
authorColeman Watts <coleman@civicrm.org>
Tue, 28 Jul 2015 17:29:24 +0000 (13:29 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 28 Jul 2015 17:29:24 +0000 (13:29 -0400)
CRM/Contribute/Form/ContributionPage/Amount.php
CRM/Contribute/Form/ContributionPage/Custom.php
CRM/Contribute/Form/ContributionPage/Premium.php
CRM/Contribute/Form/ContributionPage/Settings.php
CRM/Contribute/Form/ContributionPage/ThankYou.php
CRM/Friend/Form/Contribute.php

index 5960551826b18b6026431d96c062480a2e51e1aa..6a44a55e45d5b6ac9cb31c4c2e67aa57f016535a 100644 (file)
@@ -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');
index e396a1796614423d834c1bdaacd6fead2d8cf2f3..bc1a27f8b9822cb472e51aa95cca88e9f5f0ed4d 100644 (file)
@@ -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',
index 5c843ee07f7c144503c5b3964fb6b4e66800a50c..5aff621081e465dc90bcc5c4d69a29a532293882 100644 (file)
@@ -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;
index 9e62e59f4ea29e8939216ebd2a2283a563766216..d45c7e13b38dd1cbf61fb66fe3ffdfc48d440e09 100644 (file)
@@ -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)) {
index a110510d6c539166c7b79623599fae36a629a1b6..72fff28502e49fb77e7ff4817b03c2c1d8b8f3d3 100644 (file)
@@ -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();
   }
 
index ae5ab6ebe36e161414416bdeb693e38a81179484..6e6fba8ca56534e530d41a5a892129f4acc05b9b 100644 (file)
@@ -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)) {