Skip to content

Commit 672ca58

Browse files
committed
Merge remote-tracking branch 'github-magento/MAGETWO-91563' into EPAM-PR-16
2 parents 4336fb0 + f03ed7a commit 672ca58

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

app/code/Magento/Checkout/Controller/Cart/UpdatePost.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Checkout\Controller\Cart;
87

98
use Magento\Checkout\Model\Cart\RequestQuantityProcessor;
109
use Magento\Framework\App\Action\HttpPostActionInterface;
10+
use Magento\Framework\App\Action\HttpGetActionInterface;
1111

12-
class UpdatePost extends \Magento\Checkout\Controller\Cart implements HttpPostActionInterface
12+
/**
13+
* Post update shopping cart.
14+
*/
15+
class UpdatePost extends \Magento\Checkout\Controller\Cart implements HttpGetActionInterface, HttpPostActionInterface
1316
{
1417
/**
1518
* @var RequestQuantityProcessor

app/code/Magento/GiftMessage/view/frontend/web/js/view/gift-message.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,16 @@ define([
3131

3232
this.itemId = this.itemId || 'orderLevel';
3333
model = new GiftMessage(this.itemId);
34-
giftOptions.addOption(model);
3534
this.model = model;
35+
this.isResultBlockVisible();
36+
giftOptions.addOption(model);
3637

3738
this.model.getObservable('isClear').subscribe(function (value) {
3839
if (value == true) { //eslint-disable-line eqeqeq
3940
self.formBlockVisibility(false);
4041
self.model.getObservable('alreadyAdded')(true);
4142
}
4243
});
43-
44-
this.isResultBlockVisible();
4544
},
4645

4746
/**

0 commit comments

Comments
 (0)