Merge pull request #24376 from hregis/fix_import_parse_error

FIX can not show all csv fields (a reason for that ?)
This commit is contained in:
Laurent Destailleur 2023-03-29 13:28:12 +02:00 committed by GitHub
commit 8395b75fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 '<table class="nobordernopadding centpercent tableimport">';
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 '<tr style="height:'.$height.'" class="trimport oddevenimport">';
$entity = (!empty($objimport->array_import_entities[0][$code]) ? $objimport->array_import_entities[0][$code] : $objimport->array_import_icon[0]);