Skip to content
Snippets Groups Projects
Commit 726c1918 authored by Seamus Lee's avatar Seamus Lee
Browse files

#1725 Remove groups, tags and notes from the returned data for the...

#1725 Remove groups, tags and notes from the returned data for the usage in preview data to speed up loading of the select fields screen
parent 7cd1e262
Branches
Tags
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.
Please register or to comment