Fix for other entities
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 21 Sep 2016 13:25:58 +0000 (18:55 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Wed, 21 Sep 2016 13:25:58 +0000 (18:55 +0530)
CRM/Activity/Import/Form/MapField.php
CRM/Activity/Import/Form/Preview.php
CRM/Contribute/Import/Form/MapField.php
CRM/Contribute/Import/Form/Preview.php
CRM/Custom/Import/Form/MapField.php
CRM/Custom/Import/Form/Preview.php
CRM/Event/Import/Form/MapField.php
CRM/Event/Import/Form/Preview.php
CRM/Member/Import/Form/MapField.php
CRM/Member/Import/Form/Preview.php

index baec4b1f6846781956983de526acc0c3804bb121..324ce8b8c831dd7d02b202bd183f1ddc6cbf7bc7 100644 (file)
@@ -376,11 +376,9 @@ class CRM_Activity_Import_Form_MapField extends CRM_Import_Form_MapField {
     }
 
     $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+    $seperator = $this->controller->exportValue('DataSource', 'fieldSeparator');
     $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
 
-    $config = CRM_Core_Config::singleton();
-    $seperator = $config->fieldSeparator;
-
     $mapperKeys = array();
     $mapper = array();
     $mapperKeys = $this->controller->exportValue($this->_name, 'mapper');
index 3e1bebe60301607cd6f25712a3471db595a56058..e6b41f3d22a36eea5b8ff30f4282d34e580d9c52 100644 (file)
@@ -107,14 +107,12 @@ class CRM_Activity_Import_Form_Preview extends CRM_Import_Form_Preview {
    */
   public function postProcess() {
     $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+    $seperator = $this->controller->exportValue('DataSource', 'fieldSeparator');
     $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
     $invalidRowCount = $this->get('invalidRowCount');
     $conflictRowCount = $this->get('conflictRowCount');
     $onDuplicate = $this->get('onDuplicate');
 
-    $config = CRM_Core_Config::singleton();
-    $seperator = $config->fieldSeparator;
-
     $mapper = $this->controller->exportValue('MapField', 'mapper');
     $mapperKeys = array();
     $mapperLocType = array();
index 4c68992b6c284c978cb33df9f89cd53adc7523b3..9e28e972d02f4c5b83043f918dcc7e18fa1ac4d8 100644 (file)
@@ -482,11 +482,9 @@ class CRM_Contribute_Import_Form_MapField extends CRM_Import_Form_MapField {
     }
 
     $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+    $seperator = $this->controller->exportValue('DataSource', 'fieldSeparator');
     $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
 
-    $config = CRM_Core_Config::singleton();
-    $seperator = $config->fieldSeparator;
-
     $mapper = $mapperKeys = $mapperKeysMain = $mapperSoftCredit = $softCreditFields = $mapperPhoneType = $mapperSoftCreditType = array();
     $mapperKeys = $this->controller->exportValue($this->_name, 'mapper');
 
index 28c078add2defc1b9bea51d391e9ab55e4e1c372..585d55716a82f397b2ef9806c38b2abd2f875b18 100644 (file)
@@ -109,15 +109,13 @@ class CRM_Contribute_Import_Form_Preview extends CRM_Import_Form_Preview {
    */
   public function postProcess() {
     $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+    $seperator = $this->controller->exportValue('DataSource', 'fieldSeparator');
     $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
     $invalidRowCount = $this->get('invalidRowCount');
     $conflictRowCount = $this->get('conflictRowCount');
     $onDuplicate = $this->get('onDuplicate');
     $mapperSoftCreditType = $this->get('mapperSoftCreditType');
 
-    $config = CRM_Core_Config::singleton();
-    $seperator = $config->fieldSeparator;
-
     $mapper = $this->controller->exportValue('MapField', 'mapper');
     $mapperKeys = array();
     $mapperSoftCredit = array();
index 51d1faedbfc5aad2dbcb0bc2aaa48cc8c54ff2a0..8e51b7a3480b4dcd84bbbdffc51e789313dfb5ba 100644 (file)
@@ -136,12 +136,10 @@ class CRM_Custom_Import_Form_MapField extends CRM_Contact_Import_Form_MapField {
     }
 
     $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+    $separator = $this->controller->exportValue('DataSource', 'fieldSeparator');
     $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
     $this->_entity = $this->controller->exportValue('DataSource', 'entity');
 
-    $config = CRM_Core_Config::singleton();
-    $separator = $config->fieldSeparator;
-
     $mapperKeys = array();
     $mapper = array();
     $mapperKeys = $this->controller->exportValue($this->_name, 'mapper');
index 78301032d962a6ae56efe2ad38383c186cd57091..3d772fcda1a0992c24e0feb418c3b849b9e4b70d 100644 (file)
@@ -82,15 +82,13 @@ class CRM_Custom_Import_Form_Preview extends CRM_Import_Form_Preview {
    */
   public function postProcess() {
     $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+    $separator = $this->controller->exportValue('DataSource', 'fieldSeparator');
     $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
     $invalidRowCount = $this->get('invalidRowCount');
     $conflictRowCount = $this->get('conflictRowCount');
     $onDuplicate = $this->get('onDuplicate');
     $entity = $this->get('_entity');
 
-    $config = CRM_Core_Config::singleton();
-    $separator = $config->fieldSeparator;
-
     $mapper = $this->controller->exportValue('MapField', 'mapper');
     $mapperKeys = array();
 
index d7fab0ec8c967c0ec95cb7182472197321c391c2..153fc108cf89c7571b0e7d2748ef0204a64a9610 100644 (file)
@@ -408,17 +408,10 @@ class CRM_Event_Import_Form_MapField extends CRM_Import_Form_MapField {
     }
 
     $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+    $seperator = $this->controller->exportValue('DataSource', 'fieldSeparator');
     $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
 
-    $config = CRM_Core_Config::singleton();
-      /* 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();
index 91c2d5542ae98085033ebc1c450c2efcde1b3f90..ec46eef7e53e9139cbf465a3715b65c493319f2f 100644 (file)
@@ -113,20 +113,13 @@ class CRM_Event_Import_Form_Preview extends CRM_Import_Form_Preview {
    */
   public function postProcess() {
     $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+    $seperator = $this->controller->exportValue('DataSource', 'fieldSeparator');
     $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
     $invalidRowCount = $this->get('invalidRowCount');
     $conflictRowCount = $this->get('conflictRowCount');
     $onDuplicate = $this->get('onDuplicate');
 
-    $config = CRM_Core_Config::singleton();
-      /* 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) {
index c8d4fe983c98755671e393a619a983b23191ed57..b69936e8fc42f1b79a2982ab0e07d32703cbf26d 100644 (file)
@@ -419,11 +419,9 @@ class CRM_Member_Import_Form_MapField extends CRM_Import_Form_MapField {
     }
 
     $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+    $seperator = $this->controller->exportValue('DataSource', 'fieldSeparator');
     $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
 
-    $config = CRM_Core_Config::singleton();
-    $seperator = $config->fieldSeparator;
-
     $mapperKeys = array();
     $mapper = array();
     $mapperKeys = $this->controller->exportValue($this->_name, 'mapper');
index 8a41e9e5b560e70af072fcfc421963a15187426c..2a7041f48dcbfa00b487e5fadcd60276ad1eddb2 100644 (file)
@@ -113,14 +113,12 @@ class CRM_Member_Import_Form_Preview extends CRM_Import_Form_Preview {
    */
   public function postProcess() {
     $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+    $seperator = $this->controller->exportValue('DataSource', 'fieldSeparator');
     $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
     $invalidRowCount = $this->get('invalidRowCount');
     $conflictRowCount = $this->get('conflictRowCount');
     $onDuplicate = $this->get('onDuplicate');
 
-    $config = CRM_Core_Config::singleton();
-    $seperator = $config->fieldSeparator;
-
     $mapper = $this->controller->exportValue('MapField', 'mapper');
     $mapperKeys = array();
     $mapperLocType = array();