Skip to content
Snippets Groups Projects
Commit af6fd051 authored by Tom Ashe's avatar Tom Ashe Committed by Tom Ashe
Browse files

Issue #3362663 by laurentwh, Morbus Iff, TomTech, joachim: RC1: Can't add more...

Issue #3362663 by laurentwh, Morbus Iff, TomTech, joachim: RC1: Can't add more than one digital product to cart
parent a20a18be
No related branches found
Tags 8.x-2.0-rc5
No related merge requests found
......@@ -110,7 +110,9 @@ class LicenseOrderProcessorMultiples implements OrderProcessorInterface {
}
// Check if this $purchased_entity is already in the cart.
if (in_array($purchased_entity, $purchased_entities)) {
if (in_array($purchased_entity->uuid(), array_map(static function ($pe) {
return $pe->uuid();
}, $purchased_entities), TRUE)) {
$order->removeItem($order_item);
// Remove success message from user facing messages.
$this->messenger()->deleteByType($this->messenger()::TYPE_STATUS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment