From f1b8b7d11d49834208d4689b7c75c1306def3011 Mon Sep 17 00:00:00 2001 From: Ivan Nieto Vivanco Date: Wed, 8 Sep 2021 12:49:29 -0500 Subject: [PATCH] Convert whatever value we get in column 'checkout type' to all lowercase --- app/Importer/ItemImporter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Importer/ItemImporter.php b/app/Importer/ItemImporter.php index b68d9d5e8c..7ff568a429 100644 --- a/app/Importer/ItemImporter.php +++ b/app/Importer/ItemImporter.php @@ -100,7 +100,7 @@ class ItemImporter extends Importer return $this->createOrFetchUser($row); } - if ($this->item['checkout_class'] === 'location') { + if (strtolower($this->item['checkout_class']) === 'location') { return Location::findOrFail($this->createOrFetchLocation($this->findCsvMatch($row, 'checkout_location'))); }