Skip to content

Commit 7cea037

Browse files
committed
Merge remote-tracking branch 'mainline/2.3-develop' into MQE-1641
2 parents 53caf25 + a102409 commit 7cea037

File tree

51 files changed

+548
-311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+548
-311
lines changed

app/code/Magento/AuthorizenetAcceptjs/view/adminhtml/templates/payment/script.phtml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,19 @@
66

77
/** @var Magento\AuthorizenetAcceptjs\Block\Payment $block */
88
?>
9-
<script type="text/x-magento-init">
10-
{
11-
"#payment_form_<?= $block->escapeJs($block->escapeHtml($block->getMethodCode())) ?>": {
12-
"Magento_AuthorizenetAcceptjs/js/payment-form": {
13-
"config": <?= /* @noEscape */ $block->getPaymentConfig() ?>
14-
}
15-
}
16-
}
17-
</script>
9+
<script>
10+
//<![CDATA[
11+
require(
12+
[
13+
'Magento_AuthorizenetAcceptjs/js/authorizenet',
14+
'jquery',
15+
'domReady!'
16+
], function(AuthorizenetAcceptjs, $) {
17+
var config = <?= /* @noEscape */ $block->getPaymentConfig() ?>,
18+
form = $('#payment_form_<?= /* @noEscape */ $block->escapeJs($block->escapeHtml($block->getMethodCode())) ?>');
19+
20+
config.active = form.length > 0 && !form.is(':hidden');
21+
new AuthorizenetAcceptjs(config);
22+
});
23+
//]]>
24+
</script>

app/code/Magento/Catalog/Test/Mftf/Test/AdminCloneProductWithDuplicateUrlTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<test name="AdminCloneProductWithDuplicateUrlTest">
1212
<annotations>
1313
<features value="Catalog"/>
14+
<stories value="Product"/>
1415
<title value="Cloning a product with duplicate URL key"/>
1516
<description value="Check product cloning with duplicate URL key"/>
1617
<severity value="AVERAGE"/>

app/code/Magento/Catalog/Test/Mftf/Test/AdminRestrictedUserAddCategoryFromProductPageTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<test name="AdminRestrictedUserAddCategoryFromProductPageTest">
1212
<annotations>
1313
<features value="Catalog"/>
14+
<stories value="Category"/>
1415
<title value="Adding new category from product page by restricted user"/>
1516
<description value="Adding new category from product page by restricted user"/>
1617
<severity value="MAJOR"/>

app/code/Magento/Catalog/Test/Mftf/Test/CheckCurrentCategoryIsHighlightedAndProductsDisplayed.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<test name="CheckCurrentCategoryIsHighlightedAndProductsDisplayed">
1212
<annotations>
1313
<features value="Catalog"/>
14+
<stories value="Category"/>
1415
<title value="Сheck that current category is highlighted and all products displayed for it"/>
1516
<description value="Сheck that current category is highlighted and all products displayed for it"/>
1617
<severity value="MAJOR"/>

app/code/Magento/Catalog/view/frontend/templates/product/image.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\Catalog\Block\Product\Image */ ?>
88

9-
<img class="photo image"
9+
<img class="photo image <?= $block->escapeHtmlAttr($block->getClass()) ?>"
1010
<?= $block->escapeHtml($block->getCustomAttributes()) ?>
1111
src="<?= $block->escapeUrl($block->getImageUrl()) ?>"
1212
width="<?= $block->escapeHtmlAttr($block->getWidth()) ?>"

app/code/Magento/CatalogInventory/Model/ResourceModel/Indexer/Stock/DefaultStock.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ protected function _getStockStatusSelect($entityIds = null, $usePrimaryTable = f
230230
{
231231
$connection = $this->getConnection();
232232
$qtyExpr = $connection->getCheckSql('cisi.qty > 0', 'cisi.qty', 0);
233-
$metadata = $this->getMetadataPool()->getMetadata(\Magento\Catalog\Api\Data\ProductInterface::class);
234-
$linkField = $metadata->getLinkField();
235233

236234
$select = $connection->select()->from(
237235
['e' => $this->getTable('catalog_product_entity')],
@@ -245,12 +243,6 @@ protected function _getStockStatusSelect($entityIds = null, $usePrimaryTable = f
245243
['cisi' => $this->getTable('cataloginventory_stock_item')],
246244
'cisi.stock_id = cis.stock_id AND cisi.product_id = e.entity_id',
247245
[]
248-
)->joinInner(
249-
['mcpei' => $this->getTable('catalog_product_entity_int')],
250-
'e.' . $linkField . ' = mcpei.' . $linkField
251-
. ' AND mcpei.attribute_id = ' . $this->_getAttribute('status')->getId()
252-
. ' AND mcpei.value = ' . ProductStatus::STATUS_ENABLED,
253-
[]
254246
)->columns(
255247
['qty' => $qtyExpr]
256248
)->where(

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminCheckConfigurableProductAttributeValueUniquenessTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<test name="AdminCheckConfigurableProductAttributeValueUniquenessTest">
1212
<annotations>
1313
<features value="ConfigurableProduct"/>
14+
<stories value="Configurable Product"/>
1415
<title value="Attribute value validation (check for uniqueness) in configurable products"/>
1516
<description value="Attribute value validation (check for uniqueness) in configurable products"/>
1617
<severity value="MAJOR"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/NoOptionAvailableToConfigureDisabledProductTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1111
<test name="NoOptionAvailableToConfigureDisabledProductTest">
1212
<annotations>
13+
<stories value="Disabled Product"/>
1314
<title value="Disabled variation of configurable product can't be added to shopping cart via admin"/>
1415
<description value="Disabled variation of configurable product can't be added to shopping cart via admin"/>
1516
<severity value="AVERAGE"/>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/StorefrontVisibilityOfDuplicateProductTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1010
<test name="StorefrontVisibilityOfDuplicateProductTest">
1111
<annotations>
12+
<stories value="Duplicate Product"/>
1213
<features value="ConfigurableProduct"/>
1314
<title value="Visibility of duplicate product on the Storefront"/>
1415
<description value="Check visibility of duplicate product on the Storefront"/>

app/code/Magento/Customer/Model/Data/Address.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(
4242
}
4343

4444
/**
45-
* {@inheritdoc}
45+
* @inheritdoc
4646
*/
4747
protected function getCustomAttributesCodes()
4848
{
@@ -327,7 +327,7 @@ public function setCompany($company)
327327
*/
328328
public function setTelephone($telephone)
329329
{
330-
return $this->setData(self::TELEPHONE, $telephone);
330+
return $this->setData(self::TELEPHONE, trim($telephone));
331331
}
332332

333333
/**
@@ -452,7 +452,7 @@ public function setIsDefaultBilling($isDefaultBilling)
452452
}
453453

454454
/**
455-
* {@inheritdoc}
455+
* @inheritdoc
456456
*
457457
* @return \Magento\Customer\Api\Data\AddressExtensionInterface|null
458458
*/
@@ -462,7 +462,7 @@ public function getExtensionAttributes()
462462
}
463463

464464
/**
465-
* {@inheritdoc}
465+
* @inheritdoc
466466
*
467467
* @param \Magento\Customer\Api\Data\AddressExtensionInterface $extensionAttributes
468468
* @return $this

0 commit comments

Comments
 (0)