X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FBAO%2FUFGroup.php;h=d49553763be7691be5c935eda27517ed1fde721b;hb=7dba62dabb814739f17190c1b3143a21443d1042;hp=1815ab9b702e3687f63fd3ba18288dcfbf4c9215;hpb=0bc483648ce59a68bb752827b218f6976689660e;p=civicrm-core.git diff --git a/CRM/Core/BAO/UFGroup.php b/CRM/Core/BAO/UFGroup.php index 1815ab9b70..d49553763b 100644 --- a/CRM/Core/BAO/UFGroup.php +++ b/CRM/Core/BAO/UFGroup.php @@ -1,7 +1,7 @@ add('select', $name, $title, $subtypeList, $required); - $sel->setMultiple(TRUE); + $form->add('select', $name, $title, $subtypeList, $required, array('class' => 'crm-select2', 'multiple' => TRUE)); } elseif (in_array($fieldName, CRM_Contact_BAO_Contact::$_greetingTypes)) { //add email greeting, postal greeting, addressee, CRM-4575 @@ -2695,7 +2697,7 @@ AND ( entity_id IS NULL OR entity_id <= 0 ) * @param int $id * The profile id to copy. * - * @return void + * @return \CRM_Core_DAO */ public static function copy($id) { $fieldsFix = array('prefix' => array('title' => ts('Copy of '))); @@ -2754,8 +2756,6 @@ AND ( entity_id IS NULL OR entity_id <= 0 ) * Contact id. * @param array $values * Associative array of name/value pair. - * - * @return void */ public static function commonSendMail($contactID, &$values) { if (!$contactID || !$values) { @@ -2849,8 +2849,6 @@ AND ( entity_id IS NULL OR entity_id <= 0 ) * Group id. * @param array $values * @param CRM_Core_Smarty $template - * - * @return void */ public function profileDisplay($gid, $values, $template) { $groupTitle = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $gid, 'title'); @@ -3194,8 +3192,6 @@ AND ( entity_id IS NULL OR entity_id <= 0 ) * An array of default values. * * @param bool $isStandalone - * - * @return void */ public static function setComponentDefaults(&$fields, $componentId, $component, &$defaults, $isStandalone = FALSE) { if (!$componentId ||