Skip to content

Commit 5fb4885

Browse files
author
vtymchynskyi
committed
MAGETWO-35032: Composite products can't be added to the order from 'Recently Viewed Products section' Fix original case
1 parent bf0138f commit 5fb4885

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Quote/Model/Quote.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,8 +1538,8 @@ public function addProduct(
15381538
/**
15391539
* Error message
15401540
*/
1541-
if (is_string($cartCandidates)) {
1542-
return $cartCandidates;
1541+
if (is_string($cartCandidates) || $cartCandidates instanceof \Magento\Framework\Phrase) {
1542+
return strval($cartCandidates);
15431543
}
15441544

15451545
/**

0 commit comments

Comments
 (0)