[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:
committed by
Jeremy Kersten
parent
b867d38661
commit
2cee34fea2
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user