Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-20226: Parent Group do not inherit child group contacts #10428

Merged
merged 1 commit into from
Jun 6, 2017

Conversation

monishdeb
Copy link
Member

@monishdeb monishdeb commented May 27, 2017

@seamuslee001
Copy link
Contributor

@monishdeb test failure looks related

@monishdeb
Copy link
Member Author

Thanks @seamuslee001 . Fixed it

@monishdeb monishdeb force-pushed the CRM-20226 branch 2 times, most recently from 9dd31f3 to 19ed7c5 Compare May 28, 2017 07:00
@lcdservices
Copy link
Contributor

ran through some tests and this looks good. working as expected now.

$values[$dao->group_id]['count'] = $dao->count;
}
// get group contact count using Contact.GetCount API
$values[$object->id]['count'] = civicrm_api3('Contact', 'getcount', array('group' => $object->id));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@monishdeb are you sure this doesn't hit the limit = 25 bug in the api3?

Copy link
Member Author

@monishdeb monishdeb Jun 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@colemanw yes because on 'Manage Group', for some group, I am getting group-contact's count > 25, reason why I haven't added limit = 0 option.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found that for 'getcount' API action, the limit is not used here

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for checking.

@colemanw colemanw merged commit c48d1a5 into civicrm:master Jun 6, 2017
@monishdeb monishdeb deleted the CRM-20226 branch September 26, 2017 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants