Skip to content

Commit

Permalink
Fix #201 : Indexing children attributes of bundle products.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurélien FOUCRET committed Nov 14, 2016
1 parent 4b73c49 commit 3a09b87
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ function ($attributeId) {
$relation['configurable_attributes']
);

$parentData['configurable_attributes'] = array_unique(
array_merge($configurableAttributesCodes, $parentData['configurable_attributes'])
$parentData['configurable_attributes'] = array_values(
array_unique(array_merge($configurableAttributesCodes, $parentData['configurable_attributes']))
);
}

$parentData['children_attributes'] = array_unique($childrenAttributes);
$parentData['children_attributes'] = array_values(array_unique($childrenAttributes));
}
}

0 comments on commit 3a09b87

Please sign in to comment.