The default field separator (delimitor) present is config
($config->fieldSeparator | CRM_Core_Config) and this was used without
considering the delimitor presented via the screen. This fix addresses
this issue.
$skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
$config = CRM_Core_Config::singleton();
- $seperator = $config->fieldSeparator;
+ /* CRM - 19192 */
+ $seperator = $this->controller->exportValue('DataSource', 'fieldSeparator');
+ if(is_null($seperator)) {
+ $seperator = $config->fieldSeparator;
+ }
+
- $mapperKeys = array();
+ $mapperKeys = array();
$mapper = array();
$mapperKeys = $this->controller->exportValue($this->_name, 'mapper');
$mapperKeysMain = array();
$onDuplicate = $this->get('onDuplicate');
$config = CRM_Core_Config::singleton();
- $seperator = $config->fieldSeparator;
+ /* CRM - 19192 */
+ $seperator = $this->controller->exportValue('DataSource', 'fieldSeparator');
+ if (is_null($seperator)) {
+ $seperator = $config->fieldSeparator;
+ }
+
- $mapper = $this->controller->exportValue('MapField', 'mapper');
+ $mapper = $this->controller->exportValue('MapField', 'mapper');
$mapperKeys = array();
foreach ($mapper as $key => $value) {