CRM-14700 - revert to addSelect() now that MembershipType.xml has valid ref to get...
authorDave Greenberg <dave@civicrm.org>
Sat, 17 May 2014 01:01:47 +0000 (18:01 -0700)
committerDave Greenberg <dave@civicrm.org>
Sat, 17 May 2014 01:01:47 +0000 (18:01 -0700)
----------------------------------------
* CRM-14700:
  https://issues.civicrm.org/jira/browse/CRM-14700

CRM/Member/Form/MembershipType.php

index 0e986392d10fc5601d63a1821863f17e54a7c3c2..dd40d1a1071895dce27d6f96354841c18177f1f5 100644 (file)
@@ -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')