CRM-14581 user selector on group field - cleanup params
authorColeman Watts <coleman@civicrm.org>
Thu, 1 May 2014 03:35:56 +0000 (20:35 -0700)
committerColeman Watts <coleman@civicrm.org>
Thu, 1 May 2014 03:35:56 +0000 (20:35 -0700)
CRM/Admin/Form/Preferences.php
CRM/Admin/Form/Preferences/Multisite.php

index 3fff5d8af4ec73e70ac008451706635e508f69a6..10e02561b8274f03a5bc84a6bb7da54e3ba26511 100644 (file)
@@ -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()));
           }
         }
 
index 27d45a0bcf33213d1fc6a3673a31f6404291eabb..987cd26661608c393117a9769ce8b86ac38c5316 100644 (file)
@@ -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