From dbc12cb1696f7aa4c70d87a2b09a684b0aa19f70 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Wed, 29 Mar 2023 12:27:29 +0200 Subject: [PATCH] FIX can not show all csv fields (a reason for that ?) --- htdocs/imports/import.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index a6982bd0a4e..62059231f2d 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -1079,9 +1079,9 @@ if ($step == 4 && $datatoimport) { $valforsourcefieldnb[$lefti] = $key; $lefti++; - if ($lefti > count($fieldstarget)) { + /*if ($lefti > count($fieldstarget)) { break; // Other fields are in the not imported area - } + }*/ } //var_dump($valforsourcefieldnb); @@ -1134,9 +1134,9 @@ if ($step == 4 && $datatoimport) { print ''; foreach ($fieldssource as $code => $line) { // $fieldssource is an array code=column num, line=content on first line for column in source file. - if ($i == $minpos) { + /*if ($i == $minpos) { break; - } + }*/ print ''; $entity = (!empty($objimport->array_import_entities[0][$code]) ? $objimport->array_import_entities[0][$code] : $objimport->array_import_icon[0]);