Answers.Body: <p>There is a fix at <a href="https://github.com/civicrm/civicrm-core/pull/25170" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/25170</a>, also with an upgrade script to fix any broken values in the database.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-14T15:46:18.087Z
Answers.LastActivityDate: 2022-12-14T15:46:18.087Z
Answers.UserDisplayName: Demerit
Body: <p>pretty sure this is related to <a href="https://civicrm.stackexchange.com/q/43060/14046">TypeError: array_flip():</a></p>
  <p>New install, CiviCRM 5.55.2 on drupal9 php7.4</p>
  <ul>
  <li>setup few custom fields for INDIVIDUAL in new group, fields searchable. Not View only!</li>
  <li>Create profile with fields, used for search listing, directory.. all fields searchable. and result</li>
  <li>Set new profile as default contact - save</li>
  </ul>
  <p>Autocomplete fails to list fields. clear cache, reset DB-triggers rebuild menu, etc no effect. return to search preferences, and get...
  <a href="https://i.sstatic.net/A6m8N.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/A6m8N.png" alt="enter image description here" /></a></p>
  <p>If you remove the custom profile, everything returns to normal and fields list under autocomplete again..</p>
  <p>With this in mind I</p>
  <ul>
  <li>went back to my Profile and added a couple CONTACT fields, email, etc..</li>
  <li>set profile in search preferences</li>
  <li>Autocomplete stops working again</li>
  <li>I select another option in autocomplete contact search PHONE, etc and save.</li>
  </ul>
  <p>Autocomplete field lists come back! with all the previous fields selected.
  <a href="https://i.sstatic.net/OQMfb.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/OQMfb.png" alt="enter image description here" /></a></p>
  <p><em>adding contact fields with individual custom fields was not the fix.
  Selecting deselecting any of the fields, reordering the list causes it to break. whether or not a custom search profile is used or not.</em></p>
  
Tags: <custom-fields><profile><custom-search><quicksearch><autocomplete>
Title: Search Preferences set a custom Profile quick search - autocomplete fields drop down stops working. This is Why!
ThreadText: # Search Preferences set a custom Profile quick search - autocomplete fields drop down stops working. This is Why!
  
  (Asked by: username_0 on 2022-12-03)
  
  pretty sure this is related to [TypeError: array\_flip():](https://civicrm.stackexchange.com/q/43060/14046)
  
  New install, CiviCRM 5.55.2 on drupal9 php7.4
  
  * setup few custom fields for INDIVIDUAL in new group, fields searchable. Not View only!
  * Create profile with fields, used for search listing, directory.. all fields searchable. and result
  * Set new profile as default contact - save
  
  Autocomplete fails to list fields. clear cache, reset DB-triggers rebuild menu, etc no effect. return to search preferences, and get...
  [![enter image description here](https://i.sstatic.net/A6m8N.png)](https://i.sstatic.net/A6m8N.png)
  
  If you remove the custom profile, everything returns to normal and fields list under autocomplete again..
  
  With this in mind I
  
  * went back to my Profile and added a couple CONTACT fields, email, etc..
  * set profile in search preferences
  * Autocomplete stops working again
  * I select another option in autocomplete contact search PHONE, etc and save.
  
  Autocomplete field lists come back! with all the previous fields selected.
  [![enter image description here](https://i.sstatic.net/OQMfb.png)](https://i.sstatic.net/OQMfb.png)
  
  *adding contact fields with individual custom fields was not the fix.
  Selecting deselecting any of the fields, reordering the list causes it to break. whether or not a custom search profile is used or not.*
  
  **Tags:** custom-fields, profile, custom-search, quicksearch, autocomplete
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-12-14. Score: 1
  
  There is a fix at <https://github.com/civicrm/civicrm-core/pull/25170>, also with an upgrade script to fix any broken values in the database.
  
  
  ---
  
  