N°3905 - Polishing: CSV Import

This commit is contained in:
acognet
2021-06-21 09:41:36 +02:00
parent ee5847ec82
commit bcc2d7140e

View File

@@ -1228,8 +1228,8 @@ EOF
{ {
$sSeparator = $aGuesses['separator']; $sSeparator = $aGuesses['separator'];
} }
if ($sSeparator == 'tab') { if ($sSeparator == "\t") {
$sSeparator = "\t"; $sSeparator = "tab";
} }
$sOtherSeparator = in_array($sSeparator, array(',', ';', "\t")) ? '' : $sSeparator; $sOtherSeparator = in_array($sSeparator, array(',', ';', "\t")) ? '' : $sSeparator;
$aSep['other'] = Dict::S('UI:CSVImport:SeparatorOther').' <input type="text" size="3" maxlength="1" name="other_separator" id="other_separator" value="'.htmlentities($sOtherSeparator, ENT_QUOTES, 'UTF-8').'" onChange="DoPreview()"/>'; $aSep['other'] = Dict::S('UI:CSVImport:SeparatorOther').' <input type="text" size="3" maxlength="1" name="other_separator" id="other_separator" value="'.htmlentities($sOtherSeparator, ENT_QUOTES, 'UTF-8').'" onChange="DoPreview()"/>';