If fields were already mapped, they would cause a 500 on re-mapping on import

This commit is contained in:
Brady Wetherington 2023-03-07 21:33:20 -08:00
parent 942bedaf06
commit 037489a6c0

View file

@ -152,7 +152,7 @@ class ImporterFile extends Component
if (array_key_exists($i, $this->field_map)) { if (array_key_exists($i, $this->field_map)) {
// yes, we do. Is it valid for this type of import? // yes, we do. Is it valid for this type of import?
// (e.g. the import type might have been changed...?) // (e.g. the import type might have been changed...?)
if (array_key_exists($this->field_map[$i], $this->columnOptions[$value])) { if (array_key_exists($this->field_map[$i], $this->columnOptions[$new_import_type])) {
//yes, this key *is* valid. Continue on to the next field. //yes, this key *is* valid. Continue on to the next field.
continue; continue;
} else { } else {