Skip to content

Commit b1b0a90

Browse files
[Magento Community Engineering] Community Contributions - 2.3-develop
- merged latest code from mainline branch
2 parents 4364d04 + d80ef8f commit b1b0a90

File tree

20 files changed

+34
-29
lines changed

20 files changed

+34
-29
lines changed

app/code/Magento/AdvancedSearch/view/adminhtml/templates/system/config/testconnection.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"successText": "<?= $block->escapeHtmlAttr(__('Successful! Test again?')) ?>",
1212
"failedText": "<?= $block->escapeHtmlAttr(__('Connection failed! Test again?')) ?>",
1313
"fieldMapping": "<?= /* @noEscape */ $block->getFieldMapping() ?>"}, "validation": {}}'>
14-
<span><span><span id="<?= $block->getHtmlId() ?>_result"><?= $block->escapeHtml($block->getButtonLabel()) ?></span></span></span>
14+
<span id="<?= $block->getHtmlId() ?>_result"><?= $block->escapeHtml($block->getButtonLabel()) ?></span>
1515
</button>

app/code/Magento/Bundle/Block/Adminhtml/Catalog/Product/Edit/Tab/Attributes/Extend.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Magento\Bundle\Block\Adminhtml\Catalog\Product\Edit\Tab\Attributes;
88

99
/**
10-
* Bundle Extended Attribures Block.
10+
* Bundle Extended Attributes Block.
1111
*
1212
* @author Magento Core Team <core@magentocommerce.com>
1313
*/

app/code/Magento/Catalog/Model/Product/Url.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,8 @@ public function getUrl(\Magento\Catalog\Model\Product $product, $params = [])
162162
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
163163
);
164164

165-
if ($categoryId) {
166-
$filterData[UrlRewrite::METADATA]['category_id'] = $categoryId;
167-
} elseif (!$useCategories) {
168-
$filterData[UrlRewrite::METADATA]['category_id'] = '';
169-
}
165+
$filterData[UrlRewrite::METADATA]['category_id']
166+
= $categoryId && $useCategories ? $categoryId : '';
170167

171168
$rewrite = $this->urlFinder->findOneByData($filterData);
172169

app/code/Magento/Catalog/Model/ProductRepository/MediaGalleryProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private function processEntries(ProductInterface $product, array $newEntries, ar
231231
private function processMediaAttributes(ProductInterface $product, array $images): void
232232
{
233233
foreach ($images as $image) {
234-
if (!isset($image['removed']) && !empty($image['types'])) {
234+
if (empty($image['removed']) && !empty($image['types'])) {
235235
$this->processor->setMediaAttribute($product, $image['types'], $image['file']);
236236
}
237237
}

app/code/Magento/ProductAlert/Controller/Add/Price.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Magento\ProductAlert\Controller\Add;
88

9-
use Magento\Framework\App\Action\HttpPostActionInterface;
9+
use Magento\Framework\App\Action\HttpGetActionInterface;
1010
use Magento\ProductAlert\Controller\Add as AddController;
1111
use Magento\Framework\App\Action\Context;
1212
use Magento\Customer\Model\Session as CustomerSession;
@@ -20,7 +20,7 @@
2020
/**
2121
* Controller for notifying about price.
2222
*/
23-
class Price extends AddController implements HttpPostActionInterface
23+
class Price extends AddController implements HttpGetActionInterface
2424
{
2525
/**
2626
* @var \Magento\Store\Model\StoreManagerInterface

app/code/Magento/ProductAlert/Controller/Add/Stock.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace Magento\ProductAlert\Controller\Add;
88

9-
use Magento\Framework\App\Action\HttpPostActionInterface;
9+
use Magento\Framework\App\Action\HttpGetActionInterface;
1010
use Magento\ProductAlert\Controller\Add as AddController;
1111
use Magento\Framework\App\Action\Context;
1212
use Magento\Customer\Model\Session as CustomerSession;
@@ -19,7 +19,7 @@
1919
/**
2020
* Controller for notifying about stock.
2121
*/
22-
class Stock extends AddController implements HttpPostActionInterface
22+
class Stock extends AddController implements HttpGetActionInterface
2323
{
2424
/**
2525
* @var \Magento\Catalog\Api\ProductRepositoryInterface

app/code/Magento/ProductAlert/view/frontend/templates/product/view.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
?>
77
<?php /* @var $block \Magento\ProductAlert\Block\Product\View */?>
88
<div class="product alert <?= $block->getHtmlClass() ?>">
9-
<a href="#" data-post='<?= /* @noEscape */ $block->getPostAction() ?>'
9+
<a href="<?= $block->escapeUrl($block->getSignupUrl()) ?>"
1010
title="<?= $block->escapeHtml(__($block->getSignupLabel())) ?>" class="action alert">
1111
<?= $block->escapeHtml(__($block->getSignupLabel())) ?>
1212
</a>

app/code/Magento/Sales/Model/Order/Creditmemo/Sender/EmailSender.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ public function send(
100100
$creditmemo->setSendEmail($this->identityContainer->isEnabled());
101101

102102
if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
103+
$this->identityContainer->setStore($order->getStore());
104+
103105
$transport = [
104106
'order' => $order,
105107
'creditmemo' => $creditmemo,

app/code/Magento/Sales/Model/Order/Email/Sender/CreditmemoCommentSender.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ public function __construct(
6363
public function send(Creditmemo $creditmemo, $notify = true, $comment = '')
6464
{
6565
$order = $creditmemo->getOrder();
66+
$this->identityContainer->setStore($order->getStore());
67+
6668
$transport = [
6769
'order' => $order,
6870
'creditmemo' => $creditmemo,

app/code/Magento/Sales/Model/Order/Email/Sender/CreditmemoSender.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public function send(Creditmemo $creditmemo, $forceSyncMode = false)
104104

105105
if (!$this->globalConfig->getValue('sales_email/general/async_sending') || $forceSyncMode) {
106106
$order = $creditmemo->getOrder();
107+
$this->identityContainer->setStore($order->getStore());
107108

108109
$transport = [
109110
'order' => $order,

0 commit comments

Comments
 (0)