Skip to content

Commit

Permalink
Merge pull request #19180 from civicrm/5.33
Browse files Browse the repository at this point in the history
5.33
  • Loading branch information
seamuslee001 authored Dec 11, 2020
2 parents ec1b709 + ace2648 commit afba51f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CRM/Export/BAO/ExportProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -797,12 +797,12 @@ public function runQuery($params, $order) {
list($select, $from, $where, $having) = $query->query();
$this->setQueryFields($query->_fields);
$whereClauses = ['trash_clause' => "contact_a.is_deleted != 1"];
if ($this->getRequestedFields() && $this->getComponentTable() && $this->getComponentTable() !== 'civicrm_contact') {
$from .= " INNER JOIN " . $this->getComponentTable() . " ctTable ON ctTable.contact_id = contact_a.id ";
}
elseif ($this->getComponentClause()) {
if ($this->getComponentClause()) {
$whereClauses[] = $this->getComponentClause();
}
elseif ($this->getRequestedFields() && $this->getComponentTable() && $this->getComponentTable() !== 'civicrm_contact') {
$from .= " INNER JOIN " . $this->getComponentTable() . " ctTable ON ctTable.contact_id = contact_a.id ";
}

// CRM-13982 - check if is deleted
foreach ($params as $value) {
Expand Down

0 comments on commit afba51f

Please sign in to comment.