diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index 562773488e4..275c793deba 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -837,12 +837,11 @@ if ($step == 4 && $datatoimport) { foreach ($arrayrecord as $key => $val) { if ($val["type"] != -1) { $fieldssource[$i]['example1'] = dol_trunc($val['val'], 128); - $i++; } else { $fieldssource[$i]['example1'] = $langs->trans('Empty'); - $i++; } $fieldssource[$i]['imported'] = 0; + $i++; } $obj->import_close_file(); } @@ -2473,7 +2472,7 @@ function show_elem($fieldssource, $pos, $key) print '