From c85faa08a25a2ccf85ea5fdc049b1d15fefec767 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 30 Apr 2014 20:35:56 -0700 Subject: [PATCH] CRM-14581 user selector on group field - cleanup params --- CRM/Admin/Form/Preferences.php | 2 +- CRM/Admin/Form/Preferences/Multisite.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Admin/Form/Preferences.php b/CRM/Admin/Form/Preferences.php index 3fff5d8af4..10e02561b8 100644 --- a/CRM/Admin/Form/Preferences.php +++ b/CRM/Admin/Form/Preferences.php @@ -190,7 +190,7 @@ class CRM_Admin_Form_Preferences extends CRM_Core_Form { break; case 'entity_reference': - $this->addEntityRef($fieldName, NULL, array('entity' => 'group', 'api' => array('params' => array()))); + $this->addEntityRef($fieldName, $fieldValue['title'], CRM_Utils_Array::value('options', $fieldValue, array())); } } diff --git a/CRM/Admin/Form/Preferences/Multisite.php b/CRM/Admin/Form/Preferences/Multisite.php index 27d45a0bcf..987cd26661 100644 --- a/CRM/Admin/Form/Preferences/Multisite.php +++ b/CRM/Admin/Form/Preferences/Multisite.php @@ -62,6 +62,7 @@ class CRM_Admin_Form_Preferences_Multisite extends CRM_Admin_Form_Preferences { 'html_type' => 'entity_reference', 'title' => ts('Domain Group'), 'weight' => 3, + 'options' => array('entity' => 'group', 'select' => array('minimumInputLength' => 0)), 'description' => ts('Contacts created on this site are added to this group'), ), /** Remove this checkbox until some one knows what this setting does -- 2.25.1