Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #382 from treolabs/t-77579
Browse files Browse the repository at this point in the history
fixed importing measurement for unit attributes
  • Loading branch information
rratsun committed Dec 10, 2019
2 parents 70d5e92 + 6f65245 commit 7f22e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Import/Types/Simple/FieldConverters/Unit.php
Expand Up @@ -50,7 +50,7 @@ public function convert(\stdClass $inputRow, string $entityType, array $config,

// prepare input row for attribute
$inputRow->{$config['name']} = $value;
$inputRow->data = (object)['unit' => $inputRow->{$config['name'] . 'Unit'}];
$inputRow->data = (object)['unit' => $unit];
} else {
parent::convert($inputRow, $entityType, $config, $row, $delimiter);
}
Expand Down

0 comments on commit 7f22e9f

Please sign in to comment.