From fadad5b07418f8659a4afcbdacbc0d546b5a60d8 Mon Sep 17 00:00:00 2001 From: Matthew Wire Date: Mon, 7 May 2018 07:42:45 +0100 Subject: [PATCH] Fix export --- CRM/Export/Form/Select.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CRM/Export/Form/Select.php b/CRM/Export/Form/Select.php index 6b77da8d0c..ea0af70929 100644 --- a/CRM/Export/Form/Select.php +++ b/CRM/Export/Form/Select.php @@ -70,6 +70,20 @@ class CRM_Export_Form_Select extends CRM_Core_Form { public $_componentTable; + /** + * Must be set to entity table name (eg. civicrm_participant) by child class + * + * @var string + */ + static $tableName = NULL; + + /** + * Must be set to entity shortname (eg. event) + * + * @var string + */ + static $entityShortname = NULL; + /** * Build all the data structures needed to build the form. * @@ -120,6 +134,8 @@ class CRM_Export_Form_Select extends CRM_Core_Form { if (in_array($componentName[1], $components)) { $this->_exportMode = constant('CRM_Export_Form_Select::' . strtoupper($componentName[1]) . '_EXPORT'); $className = "CRM_{$componentName[1]}_Form_Task"; + $this::$entityShortname = $className::$entityShortname; + $this::$tableName = $className::$tableName; $className::preProcessCommon($this, !$isStandalone); $values = $this->controller->exportValues('Search'); } -- 2.25.1