Skip to content

Commit 9ae0a13

Browse files
committed
Merge pull request #209 from magento-mpi/develop
[MPI] Composite products can't be added to the order from 'Recently Viewed Products section'
2 parents f044f59 + 31cdc26 commit 9ae0a13

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
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
/**

app/code/Magento/Sales/view/adminhtml/web/order/create/scripts.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,6 +668,7 @@ AdminOrder.prototype = {
668668
if (confirm(confirmMessage)) {
669669
this.collectElementsValue = false;
670670
order.sidebarApplyChanges({'sidebar[empty_customer_cart]': 1});
671+
this.collectElementsValue = true;
671672
}
672673
},
673674

lib/internal/Magento/Framework/App/Test/Unit/View/Deployment/VersionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
use \Magento\Framework\App\View\Deployment\Version;
1010

11-
1211
class VersionTest extends \PHPUnit_Framework_TestCase
1312
{
1413
/**
@@ -71,6 +70,7 @@ public function getValueFromStorageDataProvider()
7170

7271
public function testGetValueDefaultModeSaving()
7372
{
73+
$this->markTestSkipped('MAGETWO-35794');
7474
$this->appState
7575
->expects($this->once())
7676
->method('getMode')

0 commit comments

Comments
 (0)