mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
If fields were already mapped, they would cause a 500 on re-mapping on import
This commit is contained in:
parent
942bedaf06
commit
037489a6c0
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue