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

dev/core#158 group contacts list and export limits results to 500 records #12273

Merged
merged 1 commit into from
Jun 6, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

This is an alternative to #12244 - it fixes an intra-rc regression caused by this change
https://github.com/civicrm/civicrm-core/pull/12110/files#diff-35d8774ba8df60e417bb7f9d95f5578dL112

Before

From Manage groups screen only 500 contacts exported. E-notices
screenshot 2018-06-07 00 29 16

After

All contacts export - even when more than 500 are in the group

Technical Details

The issue was that

$values = $this->controller->exportValues('Search');

was not working as the form for contact is 'Basic' thus the 'export all records' was being lost, with flow on effects.

The reason it was lost was $components went from

$components = array('Contribute', 'Member', 'Event', 'Pledge', 'Case', 'Grant', 'Activity');

to

$components = array('Contact', 'Contribute', 'Member', 'Event', 'Pledge', 'Case', 'Grant', 'Activity');

So the line

if (in_array($entityShortname, $components)) {

was not returning the correct resuls

Comments

This really needs to be fixed for tomorrow's release. I have a high degree of confidence having exported from both the basic screen & manage groups & based on stepping through the code & seeing it fail to populate and being able to find the specific recent error causing it.
Hence, I am going to self-merge this to ensure it is in the release

ping @lcdservices @mattwire @kcristiano

@civibot
Copy link

civibot bot commented Jun 6, 2018

(Standard links)

@kcristiano
Copy link
Member

thanks @eileenmcnaughton

I applied the RC plus this patch to an upgraded database with groups having over 500 contacts in them.

I can export from both screens (basic & via manage groups) as well.

I appreciate you pushing this into this release.

@lcdservices
Copy link
Contributor

I ran through tests and this is working as expected for me as well.

@eileenmcnaughton
Copy link
Contributor Author

thanks @kcristiano & @lcdservices

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.

4 participants