Skip to content

Commit

Permalink
gh #1 Resolve issues with converting gender from carts and orders
Browse files Browse the repository at this point in the history
  • Loading branch information
dajve committed Jun 23, 2017
1 parent c79e2cd commit 7d63d01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ public function convertToImportFormat(array $importedRecord, $skipNullValues = t
}
}

if (!empty($importedRecord['customerGender'])) {
$importedRecord['customerGender'] = $this->getOroGender($importedRecord['gender']);
if (!empty($return['customerGender'])) {
$return['customerGender'] = $this->getOroGender($return['customerGender']);
}

return $return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ public function convertToImportFormat(array $importedRecord, $skipNullValues = t
}
}

if (!empty($importedRecord['customerGender'])) {
$importedRecord['customerGender'] = $this->getOroGender($importedRecord['gender']);
if (!empty($return['customerGender'])) {
$return['customerGender'] = $this->getOroGender($return['customerGender']);
}

return $return;
Expand Down

0 comments on commit 7d63d01

Please sign in to comment.