From a1c7632a501502efbe248f9c8d092404257af7f9 Mon Sep 17 00:00:00 2001 From: Maxime Kohlhaas Date: Sat, 4 Jun 2016 01:28:51 +0200 Subject: [PATCH] Fix import mapping #5229 --- htdocs/imports/import.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index c6fe3094b68..d2d0540ee80 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -617,6 +617,10 @@ if ($step == 4 && $datatoimport) $obj->separator = $separator; $obj->enclosure = $enclosure; } + + if(!empty(GETPOST('update'))) { + $array_match_file_to_database=array(); + } // Load source fields in input file $fieldssource=array(); @@ -738,7 +742,7 @@ if ($step == 4 && $datatoimport) print ''; print '    '.$langs->trans("Enclosure").' : '; print ''; - print ''; + print ''; print ''; print ''; }