Code comment

This commit is contained in:
Laurent Destailleur 2022-03-23 14:39:10 +01:00
parent 12db2a8f67
commit 279a8c9df5
2 changed files with 4 additions and 0 deletions

View File

@ -716,6 +716,8 @@ class ImportCsv extends ModeleImports
}
// We add hidden fields (but only if there is at least one field to add into table)
// We process here all the fields that were declared into the array ->import_fieldshidden_array of the descriptor file.
// Previously we processed the ->import_fields_array.
if (!empty($listfields) && is_array($objimport->array_import_fieldshidden[0])) {
// Loop on each hidden fields to add them into listfields/listvalues
foreach ($objimport->array_import_fieldshidden[0] as $key => $val) {

View File

@ -757,6 +757,8 @@ class ImportXlsx extends ModeleImports
}
// We add hidden fields (but only if there is at least one field to add into table)
// We process here all the fields that were declared into the array $this->import_fieldshidden_array of the descriptor file.
// Previously we processed the ->import_fields_array.
if (!empty($listfields) && is_array($objimport->array_import_fieldshidden[0])) {
// Loop on each hidden fields to add them into listfields/listvalues
foreach ($objimport->array_import_fieldshidden[0] as $key => $val) {