Skip to content
Snippets Groups Projects
Unverified Commit f4de644f authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #17444 from seamuslee001/deb_core_1725

#1725 Remove groups, tags and notes from the returned data fo…
parents 7cd1e262 726c1918
No related branches found
No related tags found
No related merge requests found
......@@ -146,6 +146,14 @@ class CRM_Export_Form_Map extends CRM_Core_Form {
$exportParams['postal_mailing_export']['postal_mailing_export'] == 1
);
$processor = new CRM_Export_BAO_ExportProcessor($this->get('exportMode'), NULL, $this->get('queryOperator'), $this->get('mergeSameHousehold'), $isPostalOnly, $this->get('mergeSameAddress'));
// dev/core#1775 Remove notes,groups and tags from the preview data to speed up export
$defaultProperties = $processor->getDefaultReturnProperties();
foreach ($defaultProperties as $key => $var) {
if (in_array($key, ['groups', 'tags', 'notes'])) {
unset($defaultProperties[$key]);
}
}
$processor->setReturnProperties($defaultProperties);
$processor->setComponentTable($this->get('componentTable'));
$processor->setComponentClause($this->get('componentClause'));
$data = $processor->getPreview(4);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment