Skip to content

Commit

Permalink
Merge pull request #12274 from civicrm/5.2
Browse files Browse the repository at this point in the history
5.2 to master
  • Loading branch information
eileenmcnaughton authored Jun 6, 2018
2 parents 97dbd88 + aa530a8 commit 8df04fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CRM/Export/Form/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,10 @@ public function preProcess() {
break;
}

if (empty($entityDAOName)) {
$entityDAOName = $entityShortname;
}

if (in_array($entityShortname, $components)) {
$this->_exportMode = constant('CRM_Export_Form_Select::' . strtoupper($entityShortname) . '_EXPORT');
$formTaskClassName = "CRM_{$entityShortname}_Form_Task";
Expand Down Expand Up @@ -184,7 +188,7 @@ public function preProcess() {
$values = $this->controller->exportValues('Custom');
}
else {
if (in_array($entityShortname, $components)) {
if (in_array($entityShortname, $components) && $entityShortname !== 'Contact') {
$values = $this->controller->exportValues('Search');
}
else {
Expand Down

0 comments on commit 8df04fb

Please sign in to comment.