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 '';
}