From 037489a6c01bb1b2f5c8a46db1632b1a4a5721c6 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Tue, 7 Mar 2023 21:33:20 -0800 Subject: [PATCH] If fields were already mapped, they would cause a 500 on re-mapping on import --- app/Http/Livewire/ImporterFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/ImporterFile.php b/app/Http/Livewire/ImporterFile.php index 81d9c901f..e67f37f49 100644 --- a/app/Http/Livewire/ImporterFile.php +++ b/app/Http/Livewire/ImporterFile.php @@ -152,7 +152,7 @@ class ImporterFile extends Component if (array_key_exists($i, $this->field_map)) { // yes, we do. Is it valid for this type of import? // (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. continue; } else {