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) »
  • Problem with Tags and Groups in Search Builder
Pages: [1]

Author Topic: Problem with Tags and Groups in Search Builder  (Read 1645 times)

SteveM

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 3
    • OpenConcept Consulting, Inc.
Problem with Tags and Groups in Search Builder
April 27, 2009, 10:53:36 am
I am trying to help a client (on CiviCRM 2.1.6) search for members of group A who do not have tag X. The search builder produces bizarre results when looking for group = group ID of Group A and tags != tag ID of Tag X. A quick test on the demo site shows similarly bad results.

To test: assign the "Volunteer" tag (ID 5) to all 26 Individual members of the "Newsletter subscribers" group (ID 2); remove this tag from the first three. Now use the search builder for Individuals with Group = 2 and Tags != 5. It returns two contacts, one of whom is correctly identified, and one of whom is in fact tagged as a Volunteer.

From the looks of the documentation, this should in fact work. Am I missing something, or is this a bug?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Problem with Tags and Groups in Search Builder
April 27, 2009, 12:53:26 pm
I guess for this you should Custom Search instead of Search Builder.

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

HTh

Kurund

Found this reply helpful? Support CiviCRM

SteveM

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 3
    • OpenConcept Consulting, Inc.
Re: Problem with Tags and Groups in Search Builder
April 27, 2009, 01:35:34 pm
Ah yes, good point.

Except that the custom searches also don't seem to work. With the same setup as before (using the Custom Search to include the "Newsletter Subscribers" group and exclude the "Volunteers" tag) only one contact is returned instead of three.

It likewise produces two too few results on my client's install, which may or may not be a coincidence.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Problem with Tags and Groups in Search Builder
April 27, 2009, 01:55:10 pm
make a smart group from the tag involved, then use the custom search to include/exclude the groups involved??
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

SteveM

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 3
    • OpenConcept Consulting, Inc.
Re: Problem with Tags and Groups in Search Builder
April 27, 2009, 02:26:14 pm
And lo and behold it worked, both on the demo and locally! Thank you kindly.

I wonder what's broken in searching by Tags ...

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: Problem with Tags and Groups in Search Builder
April 27, 2009, 02:37:46 pm

can you please file an issue and link to this forum topic. We'll fix it for 2.2.3

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

SteveM

  • I post occasionally
  • **
  • Posts: 47
  • Karma: 3
    • OpenConcept Consulting, Inc.
Re: Problem with Tags and Groups in Search Builder
April 27, 2009, 02:51:12 pm
http://issues.civicrm.org/jira/browse/CRM-4422

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Problem with Tags and Groups in Search Builder

This forum was archived on 2017-11-26.