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) »
  • Smart groups return only one contact
Pages: [1]

Author Topic: Smart groups return only one contact  (Read 1105 times)

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
Smart groups return only one contact
June 15, 2011, 08:18:05 am
Hi,

I've found cases where smart groups misbehave in 3.4.3, returning only one contact when they should return many.


Example A: smart groups searching on membership

This problem appeared following upgrade from 3.3.5 to 3.4.3 . I've replicated on demo (r 34843) in simplified form as follows.

(1) In Advanced Search, search for contacts with Primary Members Only ...AND... Membership Status = New => 24 contacts.
(2) Create "Smart members" from search (1).
(3) In Find Contacts, search for members of "Smart members" => 1 contact - oops! (Same for Advanced Search.)
(4) If you click on the "contacts" link for this group on Manage Groups, you also get just 1 contact.


Example B: smart groups conjoining two other smart groups

This problem appeared following upgrade from 3.3.5 to 3.4.3, client says it worked correctly before upgrade. I've replicated on demo (r 34843) in simplified form as follows.

(1) In Find Contacts, search for all orgs and create "Smart group Org" => 269 contacts.
(2) In Find Contacts, search for all individuals and create "Smart group Ind" => 18 contacts.
(3) In Advanced Search, search for contacts in group "Smart group Org" or "Smart group Ind" => 287 contacts.

So far, so good. Now:

(4) Create "Smart group Ind or Org" from search (3).
(5) In Find Contacts, search for members of "Smart group Ind or Org" => 1 contact - oops! (Same for Advanced Search.)

(6) If you click on the "contacts" link for this group on Manage Groups, you also get just 1 contact.

However

(7) If, on the results page from (6), you click the Advanced Search link at the top ( http://drupal.demo.civicrm.org/civicrm/group/search/advanced?gid=11&reset=1&force=1 ), you get 287 contacts.

I've filed issue http://issues.civicrm.org/jira/browse/CRM-8319 .

Dave J
« Last Edit: June 16, 2011, 04:51:59 am by davej »

Stuart Parker

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 2
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.63
  • PHP version: 5.2.14
Re: Smart groups return only one contact
June 16, 2011, 08:09:34 am
Davej,

I'm glad I'm not the only one this has happened to. I find that the Smart Group will only list a few contacts: this list includes those who have been manually added to the Smart Group, but none (or very few) of those who qualify with the smart criteria.

Stuart

kmarkley

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 14
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7.24
  • MySQL version: 5.1.56
  • PHP version: 5.3.27
Re: Smart groups return only one contact
June 16, 2011, 03:32:22 pm
I have the same problem.

sandys

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
  • CiviCRM version: 4.1.1
  • CMS version: Drupal 6.26
  • MySQL version: 5.0.92
Re: Smart groups return only one contact
June 17, 2011, 10:00:08 am
Same problem here after updating to 3.4.3.   

For me, updating the smart group criteria and saving changes has no effect.  I can temporarily see the correct results, but if I navigate away and then back, only the original group members exist (in my case the single member selected into the smart group, and the additional members I manually added).

Since I'm concerned with memberships, I also tried forcing the addition of the contact to the smart group based on a profile using the "add new contacts to group" option.  But no changes occur in the smart group. 
« Last Edit: June 17, 2011, 10:17:59 am by sandys »

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Smart groups return only one contact
June 22, 2011, 07:45:25 am
Same here.

Stuart Parker

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 2
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7
  • MySQL version: 5.1.63
  • PHP version: 5.2.14
Re: Smart groups return only one contact
June 22, 2011, 07:50:24 am
Looking at the issue, this is now resolved for 4.0.4 and 3.4.4

davesage

  • I post frequently
  • ***
  • Posts: 153
  • Karma: 3
  • CiviCRM version: 3.4 & 4.1
  • CMS version: Joomla 1.5 & 2.5
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Smart groups return only one contact
June 22, 2011, 08:01:34 am
Is there a current ETA for this release or can I apply a patch file for this bug?

Cheers,

Dave

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Smart groups return only one contact

This forum was archived on 2017-11-26.