mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-03 23:52:24 +01:00
Clean code
This commit is contained in:
@@ -840,7 +840,7 @@ if ($step == 4 && $datatoimport) {
|
|||||||
} else {
|
} else {
|
||||||
$fieldssource[$i]['example1'] = $langs->trans('Empty');
|
$fieldssource[$i]['example1'] = $langs->trans('Empty');
|
||||||
}
|
}
|
||||||
$fieldssource[$i]['imported'] = 0;
|
$fieldssource[$i]['imported'] = false;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
$obj->import_close_file();
|
$obj->import_close_file();
|
||||||
@@ -1057,7 +1057,7 @@ if ($step == 4 && $datatoimport) {
|
|||||||
print $s;
|
print $s;
|
||||||
print '</span> ';
|
print '</span> ';
|
||||||
$htmlother->select_import_model((string) $importmodelid, 'importmodelid', $datatoimport, 1, $user->id);
|
$htmlother->select_import_model((string) $importmodelid, 'importmodelid', $datatoimport, 1, $user->id);
|
||||||
print '<input type="submit" class="button small reposition" value="'.$langs->trans("Select").'">';
|
print '<input type="submit" class="button smallpaddingimp reposition" value="'.$langs->trans("Select").'">';
|
||||||
print '</div>';
|
print '</div>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
@@ -1154,6 +1154,7 @@ if ($step == 4 && $datatoimport) {
|
|||||||
/*if ($i == $minpos) {
|
/*if ($i == $minpos) {
|
||||||
break;
|
break;
|
||||||
}*/
|
}*/
|
||||||
|
//var_dump($line);
|
||||||
print '<tr style="height:'.$height.'" class="trimport oddevenimport">';
|
print '<tr style="height:'.$height.'" class="trimport oddevenimport">';
|
||||||
// Note: $code is int, but index should be fieldname? -> @phan-suppress-next-line PhanTypeMismatchDimFetch
|
// Note: $code is int, but index should be fieldname? -> @phan-suppress-next-line PhanTypeMismatchDimFetch
|
||||||
$entity = (!empty($objimport->array_import_entities[0][$code]) ? $objimport->array_import_entities[0][$code] : $objimport->array_import_icon[0]);
|
$entity = (!empty($objimport->array_import_entities[0][$code]) ? $objimport->array_import_entities[0][$code] : $objimport->array_import_icon[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user