Referenced the wrong array.

This commit is contained in:
James Cole 2018-07-18 07:29:58 +02:00
parent 5b83931b01
commit b96d67a54e
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -172,7 +172,7 @@ class ImportTransaction
'opposing-id' => 'opposingId', 'opposing-id' => 'opposingId',
]; ];
if (isset($mapped[$role])) { if (isset($mapped[$role])) {
$field = $basics[$role]; $field = $mapped[$role];
$mappedValue = $this->getMappedValue($columnValue); $mappedValue = $this->getMappedValue($columnValue);
$this->$field = $mappedValue; $this->$field = $mappedValue;
Log::debug(sprintf('Going to set the %s. Original value is "%s", mapped value is "%s".', $role, $columnValue->getValue(), $mappedValue)); Log::debug(sprintf('Going to set the %s. Original value is "%s", mapped value is "%s".', $role, $columnValue->getValue(), $mappedValue));