fix visibility on moved funciton
authoreileenmcnaughton <eileen@fuzion.co.nz>
Mon, 29 Jun 2015 21:20:12 +0000 (21:20 +0000)
committereileenmcnaughton <eileen@fuzion.co.nz>
Mon, 29 Jun 2015 21:20:12 +0000 (21:20 +0000)
CRM/Contribute/Form/ContributionBase.php
CRM/Member/BAO/Membership.php

index f94ce43e15b8170f59e1501b350dd52bf38972c8..e7a63d581d33b3730b8ee203d6e61745821bfd25 100644 (file)
@@ -906,7 +906,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
           }
         }
 
-        $membershipTypeValues = self::buildMembershipTypeValues($this, $membershipTypeIds);
+        $membershipTypeValues = CRM_Member_BAO_Membership::buildMembershipTypeValues($this, $membershipTypeIds);
         $this->_membershipTypeValues = $membershipTypeValues;
         $endDate = NULL;
         foreach ($membershipTypeIds as $value) {
index d5f82230a163bbae64f538d0a42c649949fb8f7c..14d0d7e54783dbd17a9eef0654fb5f0a6449768d 100644 (file)
@@ -1757,7 +1757,7 @@ WHERE  civicrm_membership.contact_id = civicrm_contact.id
    *
    * @return array
    */
-  public static function &buildMembershipTypeValues(&$form, $membershipTypeID = NULL) {
+  public static function buildMembershipTypeValues(&$form, $membershipTypeID = NULL) {
     $whereClause = " WHERE domain_id = " . CRM_Core_Config::domainID();
 
     if (is_array($membershipTypeID)) {