Skip to content

Commit

Permalink
FIX: Fix for category multiselect and send configurable product (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
anitatomaszewska committed May 18, 2020
1 parent 474fab8 commit 56a3d7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ protected function getFieldValues(Element $field, $language)
{
$values = [];
foreach ($field->value as $value) {
$key = is_array($value) ? $value['key'] : $value;
$values[] =
(object)[
'key' => $this->translator->trans($value['key'], [], null, $language),
'value' => $value['value']
'key' => $this->translator->trans($key, [], null, $language),
'value' => is_array($value) ? $value['value'] : $value
];
}
return $values;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ protected function loadKeys(array &$mappedObjectElements, Concrete $object): voi
if ($element->type == 'select') {
$options = $this->getOptionsForSelect($element->name, $object);
if (!$options) {
break;
continue;
}
foreach ($options as $keyvalue) {
if ($keyvalue['value'] == $element->value) {
Expand Down

0 comments on commit 56a3d7b

Please sign in to comment.