From b387234588d44e30666f88db6a8b153457287bb6 Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Thu, 15 May 2014 16:12:01 -0700 Subject: [PATCH] CRM-14700 - revert to add() mechanism for Membership Type visibility. ---------------------------------------- * CRM-14700: https://issues.civicrm.org/jira/browse/CRM-14700 --- CRM/Member/Form/MembershipType.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CRM/Member/Form/MembershipType.php b/CRM/Member/Form/MembershipType.php index 479ee08f41..0e986392d1 100644 --- a/CRM/Member/Form/MembershipType.php +++ b/CRM/Member/Form/MembershipType.php @@ -181,7 +181,10 @@ class CRM_Member_Form_MembershipType extends CRM_Member_Form { array('' => ts('- select -')) + $relTypeInd); $memberRel->setMultiple(TRUE); - $this->addSelect('visibility', array('placeholder' => NULL, 'option_url' => NULL)); + // 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->add('text', 'weight', ts('Order'), CRM_Core_DAO::getAttribute('CRM_Member_DAO_MembershipType', 'weight') ); -- 2.25.1