From ca5241883086224c133cb1fc0800f9186c5b0e9a Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 7 Jun 2018 00:44:13 +1200 Subject: [PATCH] Fix e-notices on export coming from https://github.com/civicrm/civicrm-core/pull/12110/files --- CRM/Export/Form/Select.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Export/Form/Select.php b/CRM/Export/Form/Select.php index 408aee39cc23..3e36b238ca93 100644 --- a/CRM/Export/Form/Select.php +++ b/CRM/Export/Form/Select.php @@ -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"; @@ -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 {