From 675fbc2761697a2bd88f4115cdc221da3ce39aee Mon Sep 17 00:00:00 2001 From: ldestailleur Date: Wed, 12 Mar 2025 16:25:40 +0100 Subject: [PATCH] FIX Add one more column too much in import --- htdocs/imports/import.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 ''; // The image must have the class 'boxhandle' because it's value used in DOM draggable objects to define the area used to catch the full object //print img_picto($langs->trans("MoveField", $pos), 'grip_title', 'class="boxhandle" style="cursor:move;"'); - print img_picto($langs->trans("Column").' '.num2Alpha($pos - 1), 'file', 'class="pictofixedwidth"'); + print img_picto($langs->trans("Column").' '.num2Alpha($pos - 1), 'file', 'class="pictofixedwidth marginleftonly"'); print ''; if (isset($fieldssource[$pos]['imported']) && $fieldssource[$pos]['imported'] == false) { print '';