Skip to content

Commit 6f04829

Browse files
authored
1.1.56 Release (#176)
* 1.1.56 Release
1 parent 0799600 commit 6f04829

29 files changed

+3996
-7
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/quality-patches",
33
"description": "Provides quality patches for AdobeCommerce & Magento OpenSource",
44
"type": "magento2-component",
5-
"version": "1.1.55",
5+
"version": "1.1.56",
66
"license": "proprietary",
77
"repositories": {
88
"repo": {

patches-info.json

+1-1
Large diffs are not rendered by default.
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/vendor/magento/module-negotiable-quote/Controller/Adminhtml/Quote/Update.php b/vendor/magento/module-negotiable-quote/Controller/Adminhtml/Quote/Update.php
2+
index 2f870f27b51a..780fd39edf76 100644
3+
--- a/vendor/magento/module-negotiable-quote/Controller/Adminhtml/Quote/Update.php
4+
+++ b/vendor/magento/module-negotiable-quote/Controller/Adminhtml/Quote/Update.php
5+
@@ -94,9 +94,10 @@ public function execute()
6+
}
7+
8+
$data = $this->getQuoteData();
9+
+
10+
/** @var \Magento\Framework\Controller\Result\Json $response */
11+
$response = $this->getResultJson();
12+
- $response->setJsonData(json_encode($data, JSON_NUMERIC_CHECK));
13+
+ $response->setJsonData(json_encode($data));
14+
return $response;
15+
}
16+
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
diff --git a/vendor/magento/module-gift-registry/Block/View.php b/vendor/magento/module-gift-registry/Block/View.php
2+
index 58e77dc21f0d..04159bc2a531 100644
3+
--- a/vendor/magento/module-gift-registry/Block/View.php
4+
+++ b/vendor/magento/module-gift-registry/Block/View.php
5+
@@ -1,7 +1,21 @@
6+
<?php
7+
-/**
8+
- * Copyright © Magento, Inc. All rights reserved.
9+
- * See COPYING.txt for license details.
10+
+/************************************************************************
11+
+ *
12+
+ * ADOBE CONFIDENTIAL
13+
+ * ___________________
14+
+ *
15+
+ * Copyright 2014 Adobe
16+
+ * All Rights Reserved.
17+
+ *
18+
+ * NOTICE: All information contained herein is, and remains
19+
+ * the property of Adobe and its suppliers, if any. The intellectual
20+
+ * and technical concepts contained herein are proprietary to Adobe
21+
+ * and its suppliers and are protected by all applicable intellectual
22+
+ * property laws, including trade secret and copyright laws.
23+
+ * Dissemination of this information or reproduction of this material
24+
+ * is strictly forbidden unless prior written permission is obtained
25+
+ * from Adobe.
26+
+ * ************************************************************************
27+
*/
28+
namespace Magento\GiftRegistry\Block;
29+
30+
@@ -68,7 +82,7 @@ public function getEntity()
31+
public function getFormattedDate($date)
32+
{
33+
if ($date) {
34+
- return $this->formatDate($date, \IntlDateFormatter::MEDIUM);
35+
+ return $this->formatDate($date, \IntlDateFormatter::MEDIUM, false, 'UTC');
36+
}
37+
return '';
38+
}

patches/os/ACSD-60811_2.4.7.patch

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
diff --git a/vendor/magento/module-sales/Controller/Adminhtml/Order/AddComment.php b/vendor/magento/module-sales/Controller/Adminhtml/Order/AddComment.php
2+
index 4e47343c3d994..350a47b8facde 100644
3+
--- a/vendor/magento/module-sales/Controller/Adminhtml/Order/AddComment.php
4+
+++ b/vendor/magento/module-sales/Controller/Adminhtml/Order/AddComment.php
5+
@@ -6,7 +6,7 @@
6+
namespace Magento\Sales\Controller\Adminhtml\Order;
7+
8+
use Magento\Framework\App\Action\HttpPostActionInterface;
9+
-use Magento\Sales\Model\Order;
10+
+use Magento\Sales\Api\Data\OrderInterface;
11+
use Magento\Sales\Model\Order\Email\Sender\OrderCommentSender;
12+
13+
/**
14+
@@ -45,7 +45,7 @@ public function execute()
15+
throw new \Magento\Framework\Exception\LocalizedException(__($error));
16+
}
17+
18+
- $orderStatus = $this->getOrderStatus($order->getDataByKey('status'), $data['status']);
19+
+ $orderStatus = $this->getOrderStatus($order, $data['status']);
20+
$order->setStatus($orderStatus);
21+
$notify = $data['is_customer_notified'] ?? false;
22+
$visible = $data['is_visible_on_front'] ?? false;
23+
@@ -85,13 +85,21 @@ public function execute()
24+
/**
25+
* Get order status to set
26+
*
27+
- * @param string $orderStatus
28+
+ * @param OrderInterface $order
29+
* @param string $historyStatus
30+
* @return string
31+
*/
32+
- private function getOrderStatus(string $orderStatus, string $historyStatus): string
33+
+ private function getOrderStatus(OrderInterface $order, string $historyStatus): string
34+
{
35+
- return ($orderStatus === Order::STATE_PROCESSING || $orderStatus === Order::STATUS_FRAUD) ? $historyStatus
36+
- : $orderStatus;
37+
+ $config = $order->getConfig();
38+
+ if ($config === null) {
39+
+ return $historyStatus;
40+
+ }
41+
+ $statuses = $config->getStateStatuses($order->getState());
42+
+
43+
+ if (!isset($statuses[$historyStatus])) {
44+
+ return $order->getDataByKey('status');
45+
+ }
46+
+ return $historyStatus;
47+
}
48+
}

0 commit comments

Comments
 (0)