[FIX] website_sale: fix cart update - broken by product configurator

It tried to parse non existing json if product_custom_attribute_values was not set.

This commit closes #27308
This commit is contained in:
Sébastien Theys
2018-09-28 23:37:29 +02:00
committed by Jeremy Kersten
parent b867d38661
commit 2cee34fea2
+1 -1
View File
@@ -398,7 +398,7 @@ class WebsiteSale(ProductConfiguratorController):
product_id=int(product_id),
add_qty=add_qty,
set_qty=set_qty,
product_custom_attribute_values=json.loads(kw.get('product_custom_attribute_values'))
product_custom_attribute_values=json.loads(kw.get('product_custom_attribute_values', '{}'))
)
return request.redirect("/shop/cart")