/**
* Common form elements.
+ *
+ * @throws \CRM_Core_Exception
*/
public function buildQuickForm() {
$this->assign('errorMessage', $this->getErrorMessage());
['onchange' => 'buildDataSourceFormBlock(this.value);']
);
- $mappingArray = CRM_Core_BAO_Mapping::getCreateMappingValues('Import ' . static::IMPORT_ENTITY);
+ $mappingArray = CRM_Core_BAO_Mapping::getCreateMappingValues('Import ' . $this->getBaseEntity());
$this->add('select', 'savedMapping', ts('Saved Field Mapping'), ['' => ts('- select -')] + $mappingArray);
if ($loadedMapping = $this->get('loadedMapping')) {