Skip to content

Commit

Permalink
Merge pull request #14 from maximequeneau/master
Browse files Browse the repository at this point in the history
[API] Fix cache error serialized due to complex product attributes
  • Loading branch information
maximequeneau committed Jun 27, 2019
2 parents cc24427 + cb60130 commit 2ce2dc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Api/GiftRuleServiceInterface.php
Expand Up @@ -34,7 +34,7 @@ interface GiftRuleServiceInterface
* maximum_number_product => {number}
* code => {gift_rule_code}
* items => [
* {product_id} => [ {product_data} ]
* {product_id} => [ {product_sku} ]
* ...
* ]
* quote_items => [
Expand Down
2 changes: 1 addition & 1 deletion Helper/Cache.php
Expand Up @@ -118,7 +118,7 @@ public function saveCachedGiftRule($identifier, $rule, $giftRule)
$items = [];
$productCacheTags = [];
foreach ($collection->getItems() as $item) {
$items[$item->getId()] = $item->getData();
$items[$item->getId()] = $item->getSku();
$productCacheTags[] = Product::CACHE_TAG . '_' . $item->getEntityId();
}
$giftRuleData = [
Expand Down

0 comments on commit 2ce2dc1

Please sign in to comment.