Skip to content

Commit

Permalink
Merge pull request #15392 from demeritcowboy/export-do-not-mail
Browse files Browse the repository at this point in the history
dev/core#1292 - Contact Export has fatal error if choose 'Exclude contacts with "do not mail" privacy'
  • Loading branch information
seamuslee001 authored Oct 5, 2019
2 parents 61cc9db + 24c7f80 commit 2825475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Export/BAO/ExportProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public function setAdditionalFieldsForPostalExport() {
$fields = ['is_deceased', 'do_not_mail', 'street_address', 'supplemental_address_1'];
foreach ($fields as $index => $field) {
if (!empty($this->getReturnProperties()[$field])) {
unset($field[$index]);
unset($fields[$index]);
}
}
$this->additionalFieldsForPostalExport = array_fill_keys($fields, 1);
Expand Down

0 comments on commit 2825475

Please sign in to comment.