Answers.Body: <p>Pretty sure the "1 row" problem only shows if you search using one custom Profile then switch to using a second custom Profile</p>
  
  <p>Ie</p>
  
  <p>Reset Form
  then use Default, (all rows show)
  then switch to profile with Groups field (all rows show)
  then switch to profile with Tags field - <strong>only 1 row shows</strong>.</p>
  
  <p>Reset Form
  then use Default, (all rows show)
  then switch to profile with Tags field (all rows show)
  then switch to profile with Groups field - <strong>only 1 row shows</strong>.</p>
  
  <p>So the problem seems to relate to switching between one custom search Profile and a second one.</p>
  
  <p>NOTE: above came to light when trying to demo to Eileen that i could replicate <a href="https://lab.civicrm.org/dev/core/issues/679" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/issues/679</a></p>
  
  <p>UPDATE: Fix at <a href="https://github.com/civicrm/civicrm-core/pull/13533" rel="nofollow noreferrer">https://github.com/civicrm/civicrm-core/pull/13533</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-04T22:50:29.387Z
Answers.Text: above came to light when trying to demo to Eileen that i could replicate https://civicrm.stackexchange.com/questions/27913/advanced-search-using-custom-profile-as-display-view-that-includes-groups-not-wo
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-05T08:10:28.583Z
Answers.Text: Many thanks Pete for your answer and the links. As a workaround I had removed all group/tag fields from my custom profiles used as views.
Answers.UserDisplayName: Ben
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-02-04T22:49:41.273Z
Answers.LastActivityDate: 2019-02-05T01:35:50.507Z
Answers.LastEditDate: 2019-02-05T01:35:50.507Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>After upgrading Civi from 5.3.1 to 5.9.0 (with drupal 7.61) any search results that use a custom display view (profile) does not work properly if that profile includes the groups or tags fields in the profile. Instead of the advanced search displaying all the records found it only displays one record at a time. At the top it may say "showing 1 to 50 of 100 records", but actually only shows one record. </p>
  
  <p>I also hadn't realised that before upgrading, the groups or tags fields had not displayed at all in the advanced search - those columns would be missing even though they were included in the profile. </p>
  
  <p>Is it possible to include groups or tags fields in a profile used for search results? </p>
  
  <p>Disabling or deleting the groups/tags fields from the profile fixes the problem of only showing one contact at a time in the search results. </p>
  
  <p>Screenshot attached</p>
  
  <p><a href="https://i.sstatic.net/2DVrK.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/2DVrK.png" alt="enter image description here"></a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-06T22:06:30.113Z
Comments.Text: so is this question now "how can i get Group and Tags to display in Search Results via a Profile'?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-07T08:12:03.343Z
Comments.Text: sorry that the question was a little unclear. It was in two parts: yes, as you say, how can I get groups and tags to display in search results using a profile? And the second part was to report what seems like a bug: when groups and tags are added to search results profiles only one contact is displayed at a time
Comments.UserDisplayName: Ben
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-07T19:45:10.937Z
Comments.Text: hmm i replicated on dmaster - so yes i guess it is a bug/missing feature
Comments.UserDisplayName: petednz - fuzion
Tags: <profile><groups><search-results>
Title: Advanced Search Using Custom Profile as Display View that Includes Groups Not Working after Upgrading to 5.9.0
ThreadText: # Advanced Search Using Custom Profile as Display View that Includes Groups Not Working after Upgrading to 5.9.0
  
  (Asked by: username_0 on 2019-01-04)
  
  After upgrading Civi from 5.3.1 to 5.9.0 (with drupal 7.61) any search results that use a custom display view (profile) does not work properly if that profile includes the groups or tags fields in the profile. Instead of the advanced search displaying all the records found it only displays one record at a time. At the top it may say "showing 1 to 50 of 100 records", but actually only shows one record.
  
  I also hadn't realised that before upgrading, the groups or tags fields had not displayed at all in the advanced search - those columns would be missing even though they were included in the profile.
  
  Is it possible to include groups or tags fields in a profile used for search results?
  
  Disabling or deleting the groups/tags fields from the profile fixes the problem of only showing one contact at a time in the search results.
  
  Screenshot attached
  
  [![enter image description here](https://i.sstatic.net/2DVrK.png)](https://i.sstatic.net/2DVrK.png)
  
  **Tags:** profile, groups, search-results
  
  > **Comments:**
  > **username_1**: so is this question now "how can i get Group and Tags to display in Search Results via a Profile'?  
  > **username_0**: sorry that the question was a little unclear. It was in two parts: yes, as you say, how can I get groups and tags to display in search results using a profile? And the second part was to report what seems like a bug: when groups and tags are added to search results profiles only one contact is displayed at a time  
  > **username_1**: hmm i replicated on dmaster - so yes i guess it is a bug/missing feature  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-02-04. Score: 1 | Accepted answer
  
  Pretty sure the "1 row" problem only shows if you search using one custom Profile then switch to using a second custom Profile
  
  Ie
  
  Reset Form
  then use Default, (all rows show)
  then switch to profile with Groups field (all rows show)
  then switch to profile with Tags field - **only 1 row shows**.
  
  Reset Form
  then use Default, (all rows show)
  then switch to profile with Tags field (all rows show)
  then switch to profile with Groups field - **only 1 row shows**.
  
  So the problem seems to relate to switching between one custom search Profile and a second one.
  
  NOTE: above came to light when trying to demo to Eileen that i could replicate <https://lab.civicrm.org/dev/core/issues/679>
  
  UPDATE: Fix at <https://github.com/civicrm/civicrm-core/pull/13533>
  
  > **Comments:**
  > **username_1**: above came to light when trying to demo to Eileen that i could replicate https://civicrm.stackexchange.com/questions/27913/advanced-search-using-custom-profile-as-display-view-that-includes-groups-not-wo  
  > **username_0**: Many thanks Pete for your answer and the links. As a workaround I had removed all group/tag fields from my custom profiles used as views.  
  
  ---
  
  