Import/export: Fix definition wizard does not always save field mapping

This commit is contained in:
nathan 2023-05-23 09:33:23 -06:00
parent 6aca684905
commit 86aa99aa55

View File

@ -327,7 +327,8 @@ class importexport_wizard_basic_import_csv
$content['mapping'][] = array(
'index' => $index,
'title' => $title,
'field' => $field[$index],
// Make sure the field is not null, or auto-repeat will skip the row
'field' => $field[$index] ?: '',
'conversion' => $conversion[$index]
);
if(strstr($title,lang('Extra %1'))) $empties++;