From b96d67a54ed6cb2518bb467cb4cdb4328330c171 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 18 Jul 2018 07:29:58 +0200 Subject: [PATCH] Referenced the wrong array. --- app/Support/Import/Placeholder/ImportTransaction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Import/Placeholder/ImportTransaction.php b/app/Support/Import/Placeholder/ImportTransaction.php index 26b831388a..5ec80bf981 100644 --- a/app/Support/Import/Placeholder/ImportTransaction.php +++ b/app/Support/Import/Placeholder/ImportTransaction.php @@ -172,7 +172,7 @@ class ImportTransaction 'opposing-id' => 'opposingId', ]; if (isset($mapped[$role])) { - $field = $basics[$role]; + $field = $mapped[$role]; $mappedValue = $this->getMappedValue($columnValue); $this->$field = $mappedValue; Log::debug(sprintf('Going to set the %s. Original value is "%s", mapped value is "%s".', $role, $columnValue->getValue(), $mappedValue));