CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Glitch when using search builder to search on group membership.
Pages: [1]

Author Topic: Glitch when using search builder to search on group membership.  (Read 695 times)

michael_whitall

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Drupal
  • MySQL version: 7.14
  • PHP version: 7.14
Glitch when using search builder to search on group membership.
July 11, 2012, 11:12:52 am
Suppose I've created two smart groups and I want to search for contacts who are members of both of them. In Search > Search Builder I select

Record type: Individual
Field: Group(s)
Operator: IN

then type the group ID number in the box. This search returns the members of the relevent group. But if I add a second search field, identical except with a different group ID number, to search for only those records which are in both the specified groups, the search returns no matches, even though I have explicitly checked that some records are in both of the relevant groups. For both the single and double group searches I describe I get the following warning message:

"Notice: Undefined index: group in CRM_Contact_Selector->getColumnHeaders() (line 446 of /var/www/speak.org.uk/sites/all/modules/civicrm/CRM/Contact/Selector.php)."

I don't know whether or not that warning has anything to do with the problem I'm experiencing.  Any ideas what's going wrong?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Glitch when using search builder to search on group membership.
July 11, 2012, 11:32:52 am

in general search builder has not been maintained / improved for some time.

For the below case might want to check the custom search include/exclude groups/tags

http://drupal.demo.civicrm.org/civicrm/contact/search/custom?csid=4&reset=1

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

drewpal

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 3.4, 4.0
  • CMS version: Drupal, Joomla
  • MySQL version: 5.0.77
  • PHP version: PGP 5.3.8
Re: Glitch when using search builder to search on group membership.
September 24, 2012, 06:32:38 am
Yep. The custom search posted by Lobo works to mitigate group exclusion perfectly for me.
Oh how I wish I'd looked at the ALL the custom searches before instead of giving up after a few broken ones.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Glitch when using search builder to search on group membership.
September 24, 2012, 06:42:11 am

which ones are broken?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

drewpal

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 3.4, 4.0
  • CMS version: Drupal, Joomla
  • MySQL version: 5.0.77
  • PHP version: PGP 5.3.8
Re: Glitch when using search builder to search on group membership.
October 28, 2012, 01:38:51 am
As it turns out, none are broken.
I believe I was just really green at my first attempt and did not really understand what I was trying to chieve with the custom searches.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Glitch when using search builder to search on group membership.

This forum was archived on 2017-11-26.