Skip to content

Commit 18e69a1

Browse files
Merge branch '2.1' into MAGETWO-55354
2 parents 8116265 + a2520af commit 18e69a1

File tree

26 files changed

+113
-60
lines changed

26 files changed

+113
-60
lines changed

app/code/Magento/Authorizenet/Controller/Directpost/Payment/Place.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ protected function placeCheckoutOrder()
127127
);
128128
} catch (\Exception $exception) {
129129
$result->setData('error', true);
130-
$result->setData('error_messages', __('Unable to place order. Please try again later.'));
130+
$result->setData(
131+
'error_messages',
132+
__('An error occurred on the server. Please try to place the order again.')
133+
);
131134
}
132135
if ($response instanceof Http) {
133136
$response->representJson($this->jsonHelper->jsonEncode($result));

app/code/Magento/Authorizenet/Test/Unit/Controller/Directpost/Payment/PlaceTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,10 @@ public function textExecuteFailedPlaceOrderDataProvider()
280280
{
281281
$objectFailed = new \Magento\Framework\DataObject();
282282
$objectFailed->setData('error', true);
283-
$objectFailed->setData('error_messages', __('Unable to place order. Please try again later.'));
283+
$objectFailed->setData(
284+
'error_messages',
285+
__('An error occurred on the server. Please try to place the order again.')
286+
);
284287

285288
return [
286289
[

app/code/Magento/Authorizenet/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"Order saving error: %1","Order saving error: %1"
33
"Please choose a payment method.","Please choose a payment method."
44
"We can\'t process your order right now. Please try again later.","We can\'t process your order right now. Please try again later."
5-
"Unable to place order. Please try again later.","Unable to place order. Please try again later."
5+
"An error occurred on the server. Please try to place the order again.","An error occurred on the server. Please try to place the order again."
66
"Credit Card: xxxx-%1","Credit Card: xxxx-%1"
77
"amount %1","amount %1"
88
failed.,failed.

app/code/Magento/Catalog/Setup/CategorySetup.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public function getDefaultEntities()
6666
{
6767
return [
6868
'catalog_category' => [
69+
'entity_type_id' => 3,
6970
'entity_model' => 'Magento\Catalog\Model\ResourceModel\Category',
7071
'attribute_model' => 'Magento\Catalog\Model\ResourceModel\Eav\Attribute',
7172
'table' => 'catalog_category_entity',
@@ -334,6 +335,7 @@ public function getDefaultEntities()
334335
],
335336
],
336337
'catalog_product' => [
338+
'entity_type_id' => 4,
337339
'entity_model' => 'Magento\Catalog\Model\ResourceModel\Product',
338340
'attribute_model' => 'Magento\Catalog\Model\ResourceModel\Eav\Attribute',
339341
'table' => 'catalog_product_entity',

app/code/Magento/Checkout/Model/GuestPaymentInformationManagement.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ public function savePaymentInformationAndPlaceOrder(
8080
try {
8181
$orderId = $this->cartManagement->placeOrder($cartId);
8282
} catch (\Exception $e) {
83-
throw new CouldNotSaveException(__('Unable to place order. Please try again later.'), $e);
83+
throw new CouldNotSaveException(
84+
__('An error occurred on the server. Please try to place the order again.'),
85+
$e
86+
);
8487
}
8588
return $orderId;
8689
}

app/code/Magento/Checkout/Model/PaymentInformationManagement.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ public function savePaymentInformationAndPlaceOrder(
6868
try {
6969
$orderId = $this->cartManagement->placeOrder($cartId);
7070
} catch (\Exception $e) {
71-
throw new CouldNotSaveException(__('Unable to place order. Please try again later.'), $e);
71+
throw new CouldNotSaveException(
72+
__('An error occurred on the server. Please try to place the order again.'),
73+
$e
74+
);
7275
}
7376
return $orderId;
7477
}

app/code/Magento/Checkout/Test/Unit/Model/GuestPaymentInformationManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function testSavePaymentInformationAndPlaceOrder()
9393
}
9494

9595
/**
96-
* @expectedExceptionMessage Unable to place order. Please try again later.
96+
* @expectedExceptionMessage An error occurred on the server. Please try to place the order again.
9797
* @expectedException \Magento\Framework\Exception\CouldNotSaveException
9898
*/
9999
public function testSavePaymentInformationAndPlaceOrderException()

app/code/Magento/Checkout/Test/Unit/Model/PaymentInformationManagementTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testSavePaymentInformationAndPlaceOrder()
7070
}
7171

7272
/**
73-
* @expectedExceptionMessage Unable to place order. Please try again later.
73+
* @expectedExceptionMessage An error occurred on the server. Please try to place the order again.
7474
* @expectedException \Magento\Framework\Exception\CouldNotSaveException
7575
*/
7676
public function testSavePaymentInformationAndPlaceOrderException()

app/code/Magento/Checkout/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Checkout,Checkout
4040
"This quote item does not exist.","This quote item does not exist."
4141
"Display number of items in cart","Display number of items in cart"
4242
"Display item quantities","Display item quantities"
43-
"Unable to place order. Please try again later.","Unable to place order. Please try again later."
43+
"An error occurred on the server. Please try to place the order again.","An error occurred on the server. Please try to place the order again."
4444
"Shipping address is not set","Shipping address is not set"
4545
"Unable to save address. Please check input data.","Unable to save address. Please check input data."
4646
"Carrier with such method not found: %1, %2","Carrier with such method not found: %1, %2"

app/code/Magento/Checkout/view/frontend/web/js/sidebar.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ define([
246246
target = $(this.options.minicart.list),
247247
outerHeight;
248248

249+
self.scrollHeight = 0;
249250
target.children().each(function () {
250251

251252
if ($(this).find('.options').length > 0) {
@@ -259,7 +260,7 @@ define([
259260
self.scrollHeight += outerHeight;
260261
});
261262

262-
target.height(height);
263+
target.parent().height(height);
263264
}
264265
});
265266

0 commit comments

Comments
 (0)