Skip to content

Firefly III: a personal finances manager

Referenced the wrong array.

James Coleb96d67a54ed6
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));