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) »
  • Wrong counts using Parent Groups
Pages: [1]

Author Topic: Wrong counts using Parent Groups  (Read 582 times)

ayduns

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 6
    • Squiffle Consulting
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7
Wrong counts using Parent Groups
November 21, 2011, 02:04:05 pm
Hi,
I'm using the Parent Group function to combine multiple sub-groups of contacts.  The problem is that the parent group shows the wrong number of contacts.  It shows the actual contacts I expect - it's just the record count that is wrong.

Each sub-group shows the right contacts and counts.  I've tried removing all the sub-groups and adding them back in individually.  Eg:
Check parent group has no members
Add one sub-group of 37 members
Parent group shows 53 members, but correctly lists the 37

The difference varies, so my sub-groups have 10,37,36,36 and 38 entries but when added individually to the parent group shows as 20,52,61,54 and 57 entries

There has been a lot of merging activity so I wonder whether it relates to that.

I've tried a variety of searches including Search Builder but can't get it to list anything other than the expected records, but the count stays stubbornly wrong!

Is this a known issue?  Any suggestions for starting to debug this?

This is CiviCRM 4.0.7 on Joomla 1.6.5

thanks
Aidan

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: Wrong counts using Parent Groups
November 21, 2011, 04:18:41 pm

1. are your sub-groups static groups or smart groups?

2. can you try and reproduce this on demo

there is an existing issue with 3.4.7 and 4.0.7 about counts being wrong in component searches (i.e. gimme all contacts who have completed a contribution). this is being addressed and fixed in 3.4.8

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

ayduns

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 6
    • Squiffle Consulting
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7
Re: Wrong counts using Parent Groups
November 22, 2011, 01:58:00 am
1) The sub-groups are static
2) Yes - look at "My parent group" : http://drupal.demo.civicrm.org/civicrm/group/search?reset=1&force=1&context=smog&gid=8

It correctly lists 5 contacts but reports 10 records.

"My parent group" is the parent of "My sub-group1"

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: Wrong counts using Parent Groups
November 22, 2011, 06:37:08 am

this is fixed for 3.4.8

I did an update on the demo, and it now shows the right count :)

It was due to: http://issues.civicrm.org/jira/browse/CRM-9214

You can get the patch from there, or wait till 3.4.8 comes out (sometime in dec)

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

ayduns

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 6
    • Squiffle Consulting
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7
Re: Wrong counts using Parent Groups
November 22, 2011, 12:44:38 pm
Many thanks - the patch has fixed my issue.

Aidan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Wrong counts using Parent Groups

This forum was archived on 2017-11-26.