X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FForm%2FGroupContact.php;h=64e83e772cb56b6163f4da5ad091a4fd5833f0e3;hb=5a409b503d3d12e55c4734e88d046971e640f3bd;hp=052569046b5f00f8b287b3cd54d2863570e5f6af;hpb=bfe714ea5b2826b5b38c929ebf341b3d1d9aa29a;p=civicrm-core.git diff --git a/CRM/Contact/Form/GroupContact.php b/CRM/Contact/Form/GroupContact.php index 052569046b..64e83e772c 100644 --- a/CRM/Contact/Form/GroupContact.php +++ b/CRM/Contact/Form/GroupContact.php @@ -1,7 +1,7 @@ _contactId = $this->get('contactId'); $this->_groupContactId = $this->get('groupContactId'); @@ -61,8 +75,6 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form { /** * Build the form object. - * - * @return void */ public function buildQuickForm() { // get the list of all the groups @@ -101,10 +113,7 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form { $msg = ts('Add to a group'); } - $this->add('select', 'group_id', '', $groupSelect, TRUE, array( - 'class' => 'crm-select2 crm-action-menu action-icon-plus', - 'placeholder' => $msg, - )); + $this->addField('group_id', array('class' => 'crm-action-menu action-icon-plus', 'placeholder' => $msg, 'options' => $groupSelect)); $this->addButtons(array( array( @@ -118,8 +127,7 @@ class CRM_Contact_Form_GroupContact extends CRM_Core_Form { } /** - * - * @return void + * Post process form. */ public function postProcess() { $contactID = array($this->_contactId);