phpcs fix & remove unused param
authorEileen McNaughton <eileen@fuzion.co.nz>
Sun, 12 Jul 2015 10:32:01 +0000 (22:32 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Sun, 12 Jul 2015 10:32:01 +0000 (22:32 +1200)
CRM/Member/BAO/Membership.php
CRM/Member/Form/MembershipRenewal.php

index 5ca038d83c4fee0bd419c2e55bf39751840e23e4..c8020476f8775f3e3e70c785537e5fe0f3b6b650 100644 (file)
@@ -2301,7 +2301,7 @@ INNER JOIN  civicrm_contact contact ON ( contact.id = membership.contact_id AND
       'fields' => $fields,
       'price_fields' => array(
         'price_' . $fieldID => CRM_Utils_Array::value('id', $results),
-      )
+      ),
     );
     return $returnParams;
   }
index ad4ab1bc5628fd14b384f1a25defe8cac919efc0..2ddd44319d8c2f997611d459d1d7e0be97b7cd3e 100644 (file)
@@ -482,14 +482,6 @@ class CRM_Member_Form_MembershipRenewal extends CRM_Member_Form {
    */
   protected function submit() {
     $this->storeContactFields($this->_params);
-    // use values from screen
-
-    if ($this->_params['membership_type_id'][1] <> 0) {
-      $defaults['receipt_text_renewal'] = CRM_Core_DAO::getFieldValue('CRM_Member_DAO_MembershipType',
-        $this->_params['membership_type_id'][1],
-        'receipt_text_renewal'
-      );
-    }
 
     $now = CRM_Utils_Date::getToday(NULL, 'YmdHis');
     $this->convertDateFieldsToMySQL($this->_params);