From 764b1cdc585eaadb4cd9a92eaca91714e0689049 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Fri, 16 May 2014 18:01:47 -0700 Subject: [PATCH] CRM-14700 - revert to addSelect() now that MembershipType.xml has valid ref to get the options. ---------------------------------------- * CRM-14700: https://issues.civicrm.org/jira/browse/CRM-14700 --- CRM/Member/Form/MembershipType.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CRM/Member/Form/MembershipType.php b/CRM/Member/Form/MembershipType.php index 0e986392d1..dd40d1a107 100644 --- a/CRM/Member/Form/MembershipType.php +++ b/CRM/Member/Form/MembershipType.php @@ -181,9 +181,7 @@ class CRM_Member_Form_MembershipType extends CRM_Member_Form { array('' => ts('- select -')) + $relTypeInd); $memberRel->setMultiple(TRUE); - // The auto-magic metadata retrieval does not return the correct enum values. Reverting to old approach for now. dgg - // $this->addSelect('visibility', array('placeholder' => NULL, 'option_url' => NULL)); - $this->add('select', 'visibility', ts('Visibility'), CRM_Core_SelectValues::memberVisibility(), TRUE, array('class' => 'crm-select2')); + $this->addSelect('visibility', array('placeholder' => NULL, 'option_url' => NULL)); $this->add('text', 'weight', ts('Order'), CRM_Core_DAO::getAttribute('CRM_Member_DAO_MembershipType', 'weight') -- 2.25.1