diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php
index 1ce6d859266..9a33bd25c05 100644
--- a/htdocs/imports/import.php
+++ b/htdocs/imports/import.php
@@ -1068,6 +1068,7 @@ if ($step == 4 && $datatoimport) {
print '
'."\n";
// List of source fields
+
$var = false;
$lefti = 1;
foreach ($fieldssource as $key => $val) {
@@ -1090,6 +1091,7 @@ if ($step == 4 && $datatoimport) {
print '
';
// Set the list of all possible target fields in Dolibarr.
+
$optionsall = array();
foreach ($fieldstarget as $code => $line) {
//var_dump($line);
@@ -1141,8 +1143,7 @@ if ($step == 4 && $datatoimport) {
$entityicon = !empty($entitytoicon[$entity]) ? $entitytoicon[$entity] : $entity; // $entityicon must string name of picto of the field like 'project', 'company', 'contact', 'modulename', ...
$entitylang = $entitytolang[$entity] ? $entitytolang[$entity] : $objimport->array_import_label[0]; // $entitylang must be a translation key to describe object the field is related to, like 'Company', 'Contact', 'MyModyle', ...
- //print ' | => '.img_object('', $entityicon).' '.$langs->trans($entitylang).' | ';
- print '=> | ';
+ print '=> | ';
print '';
//var_dump($_SESSION['dol_array_match_file_to_database_select']);
@@ -1510,7 +1511,7 @@ if ($step == 4 && $datatoimport) {
print ' | | ';
print $obj->label;
print ' | ';
- print '';
+ print ' | ';
if (empty($obj->fk_user)) {
print $langs->trans("Everybody");
} else {
@@ -2338,7 +2339,7 @@ $db->close();
*/
function show_elem($fieldssource, $pos, $key, $var, $nostyle = '')
{
- global $langs;
+ global $conf, $langs;
$height = '32px';
@@ -2384,7 +2385,7 @@ function show_elem($fieldssource, $pos, $key, $var, $nostyle = '')
if (isset($fieldssource[$pos]['imported']) && $fieldssource[$pos]['imported'] == false) {
print ' | ';
} else {
- print ' | ';
+ print ' | ';
}
print $langs->trans("Column").' '.num2Alpha($pos - 1).' (#'.$pos.')';
if (empty($fieldssource[$pos]['example1'])) {
@@ -2396,7 +2397,12 @@ function show_elem($fieldssource, $pos, $key, $var, $nostyle = '')
if (!utf8_check($example)) {
$example = utf8_encode($example);
}
- print ' - ';
+ if (!empty($conf->dol_optimize_smallscreen)) {
+ //print ' ';
+ print ' - ';
+ } else {
+ print ' - ';
+ }
//print ''.$langs->trans("ExampleOnFirstLine").': ';
print ''.$example.'';
}
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index 95a8e47f009..6f246a0ce96 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -1709,6 +1709,7 @@ select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-select
select.minwidth100imp, select.minwidth100, select.minwidth200, select.minwidth200imp, select.minwidth300 {
width: calc(100% - 40px) !important;
+ min-width: 100px;
display: inline-block;
}
select.widthcentpercentminusxx, span.widthcentpercentminusxx:not(.select2-selection), input.widthcentpercentminusxx {
|