diff --git a/synchro/synchro_import.php b/synchro/synchro_import.php index b4d8988b07..5284a886a2 100644 --- a/synchro/synchro_import.php +++ b/synchro/synchro_import.php @@ -104,7 +104,7 @@ $aPageParams = array 'mandatory' => false, 'modes' => 'http,cli', 'default' => ';', - 'description' => 'column separator in CSV data', + 'description' => 'column separator in CSV data (1 char, or \'tab\')', ), 'qualifier' => array ( @@ -309,6 +309,11 @@ try $sComment = ReadParam($oP, 'comment', 'raw_data'); $sNoStopOnImportError = ReadParam($oP, 'no_stop_on_import_error'); + if (strtolower(trim($sSep)) == 'tab') + { + $sSep = "\t"; + } + $oLoadStartDate = new DateTime(); // Now // Note about date formatting: These MySQL settings are read-only... and in fact unused :-( diff --git a/webservices/import.php b/webservices/import.php index 16fd53aed6..0c1aec6255 100644 --- a/webservices/import.php +++ b/webservices/import.php @@ -102,7 +102,7 @@ $aPageParams = array 'mandatory' => false, 'modes' => 'http,cli', 'default' => ',', - 'description' => 'column separator in CSV data', + 'description' => 'column separator in CSV data (1 char, or \'tab\')', ), 'qualifier' => array ( @@ -283,6 +283,11 @@ try $sSimulate = ReadParam($oP, 'simulate'); $sComment = ReadParam($oP, 'comment', 'raw_data'); + if (strtolower(trim($sSep)) == 'tab') + { + $sSep = "\t"; + } + ////////////////////////////////////////////////// // // Check parameters format/consistency