Skip to content

Commit 20474b1

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #13328: Add indexes to timestamp field in oauth_nonce (by @KarlDeux) - #15621: fix typo for setCateroryIds (by @neeta-wagento) - #15645: [Resolved : Menu widget submenu alignment #7897] (by @hitesh-wagento) - #15615: [Backport] Removed comma(,) from translate attribute (by @dmytro-ch) - #15585: Fix #13415 : Duplicated elements id (by @julienanquetil) - #15594: Remove extra semicolon from the files (by @saurabh-aureate) - #15349: Resolve Knockout non-unique elements id in console error (by @neeta-wagento) Fixed GitHub Issues: - #10346: Deadlock occurs using REST API & OAuth 1.0a under high concurrency (reported by @careys7) has been fixed in #13328 by @KarlDeux in 2.2-develop branch Related commits: 1. 521d11b - #15590: Typo in tests / setCateroryIds([]) (reported by @kmddevdani) has been fixed in #15621 by @neeta-wagento in 2.2-develop branch Related commits: 1. 1d47b28 - #7897: Menu widget submenu alignment (reported by @slackerzz) has been fixed in #15645 by @hitesh-wagento in 2.2-develop branch Related commits: 1. 2694906 - #13415: Duplicated elements id in checkout page (reported by @angelo983) has been fixed in #15585 by @julienanquetil in 2.2-develop branch Related commits: 1. 2e4bd95 2. 187c529 3. b90d93d - #15348: Multiple Payment Methods Enabled is giving error in console "Found 3 Elements with non - unique Id" (reported by @neeta-wagento) has been fixed in #15349 by @neeta-wagento in 2.2-develop branch Related commits: 1. 20d8e6a 2. 3c8f6f4
2 parents 81f65c1 + 35e79d5 commit 20474b1

File tree

17 files changed

+43
-30
lines changed

17 files changed

+43
-30
lines changed

app/code/Magento/Checkout/view/frontend/web/template/billing-address/form.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
<!-- ko template: getTemplate() --><!-- /ko -->
1010
<!--/ko-->
1111
<form data-bind="attr: {'data-hasrequired': $t('* Required Fields')}">
12-
<fieldset id="billing-new-address-form" class="fieldset address">
12+
<fieldset
13+
data-bind="attr: { id:'billing-new-address-form-'+index, value:index}"
14+
class="billing-new-address-form fieldset address">
1315
<!-- ko foreach: getRegion('additional-fieldsets') -->
1416
<!-- ko template: getTemplate() --><!-- /ko -->
1517
<!--/ko-->

app/code/Magento/GiftMessage/view/frontend/web/template/gift-message-form.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,24 @@
1212
<div class="gift-options-content">
1313
<fieldset class="fieldset">
1414
<div class="field field-to">
15-
<label for="gift-message-whole-to" class="label">
15+
<label data-bind="attr: {for: 'gift-message-whole-to-' + index }" class="label">
1616
<span data-bind="i18n: 'To:'"></span>
1717
</label>
1818
<div class="control">
1919
<input type="text"
20-
id="gift-message-whole-to"
2120
class="input-text"
22-
data-bind="value: getObservable('recipient')">
21+
data-bind="value: getObservable('recipient'), attr: { id: 'gift-message-whole-to-' + index }">
2322
</div>
2423
</div>
2524

2625
<div class="field field-from">
27-
<label for="gift-message-whole-from" class="label">
26+
<label data-bind="attr: {for: 'gift-message-whole-from-' + index }" class="label">
2827
<span data-bind="i18n: 'From:'"></span>
2928
</label>
3029
<div class="control">
3130
<input type="text"
32-
id="gift-message-whole-from"
3331
class="input-text"
34-
data-bind="value: getObservable('sender')">
32+
data-bind="value: getObservable('sender'), attr: { id: 'gift-message-whole-from-' + index }">
3533
</div>
3634
</div>
3735
<div class="field text">
@@ -46,7 +44,6 @@
4644
</div>
4745
</div>
4846
</fieldset>
49-
5047
</div>
5148
</div>
5249
<!-- /ko -->

app/code/Magento/Integration/Setup/UpgradeSchema.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,16 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
7171
$setup->getConnection()->createTable($table);
7272
}
7373

74+
if (version_compare($context->getVersion(), '2.2.1', '<')) {
75+
$connection = $setup->getConnection();
76+
77+
$connection->addIndex(
78+
$setup->getTable('oauth_nonce'),
79+
$setup->getIdxName('oauth_nonce', ['timestamp']),
80+
['timestamp']
81+
);
82+
}
83+
7484
$setup->endSetup();
7585
}
7686
}

app/code/Magento/Integration/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_Integration" setup_version="2.2.0">
9+
<module name="Magento_Integration" setup_version="2.2.1">
1010
<sequence>
1111
<module name="Magento_Store"/>
1212
<module name="Magento_User"/>

app/code/Magento/Multishipping/Test/Unit/Block/Checkout/SuccessTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testGetOrderIdsWithEmptyIdsArray()
7171
public function testGetOrderIds()
7272
{
7373
$ids = [100, 102, 103];
74-
$this->sessionMock->method('getOrderIds')->willReturn($ids);;
74+
$this->sessionMock->method('getOrderIds')->willReturn($ids);
7575

7676
$this->assertEquals($ids, $this->model->getOrderIds());
7777
}

app/code/Magento/Sales/etc/adminhtml/system.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,15 @@
106106
<comment>We'll use the default error above if you leave this empty.</comment>
107107
</field>
108108
</group>
109-
<group id="dashboard" translate="label,comment" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
109+
<group id="dashboard" translate="label" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0">
110110
<label>Dashboard</label>
111-
<field id="use_aggregated_data" translate="label" sortOrder="10" type="select" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
111+
<field id="use_aggregated_data" translate="label comment" sortOrder="10" type="select" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1">
112112
<label>Use Aggregated Data</label>
113113
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
114114
<comment>Improves dashboard performance but provides non-realtime data.</comment>
115115
</field>
116116
</group>
117-
<group id="orders" translate="label,comment" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="0">
117+
<group id="orders" translate="label" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="0">
118118
<label>Orders Cron Settings</label>
119119
<field id="delete_pending_after" translate="label" type="text" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
120120
<label>Pending Payment Order Lifetime (minutes)</label>

app/code/Magento/Tax/Model/Sales/Total/Quote/CommonTaxCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ protected function processProductItems(
531531
$total->setSubtotalInclTax($subtotalInclTax);
532532
$total->setBaseSubtotalTotalInclTax($baseSubtotalInclTax);
533533
$total->setBaseSubtotalInclTax($baseSubtotalInclTax);
534-
$shippingAssignment->getShipping()->getAddress()->setBaseSubtotalTotalInclTax($baseSubtotalInclTax);;
534+
$shippingAssignment->getShipping()->getAddress()->setBaseSubtotalTotalInclTax($baseSubtotalInclTax);
535535

536536
return $this;
537537
}

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Checkout/Section/CheckoutPaymentSection.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<element name="isPaymentSection" type="text" selector="//*[@class='opc-progress-bar']/li[contains(@class, '_active') and span[contains(.,'Review &amp; Payments')]]"/>
1313
<element name="availablePaymentSolutions" type="text" selector="#checkout-payment-method-load>div>div>div:nth-child(2)>div.payment-method-title.field.choice"/>
1414
<element name="notAvailablePaymentSolutions" type="text" selector="#checkout-payment-method-load>div>div>div.payment-method._active>div.payment-method-title.field.choice"/>
15-
<element name="billingNewAddressForm" type="text" selector="#billing-new-address-form"/>
15+
<element name="billingNewAddressForm" type="text" selector=".billing-new-address-form"/>
1616
<element name="placeOrderDisabled" type="button" selector="#checkout-payment-method-load button.disabled"/>
1717
<element name="update" type="button" selector=".payment-method-billing-address .action.action-update"/>
1818
<element name="guestFirstName" type="input" selector=".billing-address-form input[name*='firstname']"/>

dev/tests/integration/testsuite/Magento/AdvancedPricingImportExport/_files/create_products.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
1616
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
1717
->setWebsiteIds([1])
18-
->setCateroryIds([])
18+
->setCategoryIds([])
1919
->setStockData(['qty' => 100, 'is_in_stock' => 1])
2020
->setIsObjectNew(true)
2121
->save();

dev/tests/integration/testsuite/Magento/Bundle/_files/multiple_products.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
2929
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
3030
->setWebsiteIds([1])
31-
->setCateroryIds([])
31+
->setCategoryIds([])
3232
->setStockData([
3333
'use_config_manage_stock' => 1,
3434
'qty' => 100,
@@ -59,7 +59,7 @@
5959
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG)
6060
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
6161
->setWebsiteIds([1])
62-
->setCateroryIds([])
62+
->setCategoryIds([])
6363
->setStockData([
6464
'use_config_manage_stock' => 1,
6565
'qty' => 50,
@@ -85,7 +85,7 @@
8585
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG)
8686
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
8787
->setWebsiteIds([1])
88-
->setCateroryIds([])
88+
->setCategoryIds([])
8989
->setStockData([
9090
'use_config_manage_stock' => 1,
9191
'qty' => 140,
@@ -116,7 +116,7 @@
116116
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
117117
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
118118
->setWebsiteIds([1])
119-
->setCateroryIds([])
119+
->setCategoryIds([])
120120
->setStockData([
121121
'use_config_manage_stock' => 1,
122122
'qty' => 20,
@@ -147,7 +147,7 @@
147147
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
148148
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
149149
->setWebsiteIds([1])
150-
->setCateroryIds([])
150+
->setCategoryIds([])
151151
->setStockData([
152152
'use_config_manage_stock' => 1,
153153
'qty' => 15,

dev/tests/integration/testsuite/Magento/Catalog/Model/ResourceModel/_files/website_attribute_sync.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
127127
->setStatus(AttributeStatus::STATUS_ENABLED)
128128
->setWebsiteIds([$website->getId()])
129-
->setCateroryIds([])
129+
->setCategoryIds([])
130130
->setStockData(['use_config_manage_stock' => 1, 'qty' => 100, 'is_qty_decimal' => 0, 'is_in_stock' => 1]);
131131

132132
$product = $productRepository->save($product);

dev/tests/integration/testsuite/Magento/Catalog/_files/category_duplicates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED
4949
)->setWebsiteIds(
5050
[1]
51-
)->setCateroryIds(
51+
)->setCategoryIds(
5252
[]
5353
)->setStockData(
5454
['qty' => 100, 'is_in_stock' => 1]

dev/tests/integration/testsuite/Magento/Catalog/_files/multiple_products.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
2626
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
2727
->setWebsiteIds([1])
28-
->setCateroryIds([])
28+
->setCategoryIds([])
2929
->setStockData(['use_config_manage_stock' => 1, 'qty' => 100, 'is_qty_decimal' => 0, 'is_in_stock' => 1])
3030
->save();
3131

@@ -49,7 +49,7 @@
4949
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG)
5050
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
5151
->setWebsiteIds([1])
52-
->setCateroryIds([])
52+
->setCategoryIds([])
5353
->setStockData(['use_config_manage_stock' => 1, 'qty' => 50, 'is_qty_decimal' => 0, 'is_in_stock' => 1])
5454
->save();
5555

@@ -68,6 +68,6 @@
6868
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG)
6969
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_DISABLED)
7070
->setWebsiteIds([1])
71-
->setCateroryIds([])
71+
->setCategoryIds([])
7272
->setStockData(['use_config_manage_stock' => 1, 'qty' => 140, 'is_qty_decimal' => 0, 'is_in_stock' => 1])
7373
->save();

dev/tests/integration/testsuite/Magento/Catalog/_files/multiple_products_with_non_saleable_product.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
2525
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
2626
->setWebsiteIds([1])
27-
->setCateroryIds([])
27+
->setCategoryIds([])
2828
->setStockData(['use_config_manage_stock' => 1, 'qty' => 100, 'is_qty_decimal' => 0, 'is_in_stock' => 1])
2929
->save();
3030

@@ -47,6 +47,6 @@
4747
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG)
4848
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
4949
->setWebsiteIds([1])
50-
->setCateroryIds([])
50+
->setCategoryIds([])
5151
->setStockData(['use_config_manage_stock' => 1, 'qty' => 50, 'is_qty_decimal' => 0, 'is_in_stock' => 0])
5252
->save();

dev/tests/integration/testsuite/Magento/CatalogImportExport/_files/product_export_data_special_chars.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
2929
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
3030
->setWebsiteIds([1])
31-
->setCateroryIds([])
31+
->setCategoryIds([])
3232
->setStockData(['qty' => 100, 'is_in_stock' => 1])
3333
->setCanSaveCustomOptions(true)
3434
->setCategoryIds([333])

dev/tests/integration/testsuite/Magento/CatalogImportExport/_files/product_export_with_product_links_data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED
3535
)->setWebsiteIds(
3636
[1]
37-
)->setCateroryIds(
37+
)->setCategoryIds(
3838
[]
3939
)->setStockData(
4040
['qty' => 100, 'is_in_stock' => 1]

lib/web/css/source/lib/_navigation.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@
305305
.lib-css(border-top, none);
306306
}
307307

308+
li.level1 {
309+
position: relative;
310+
}
311+
308312
.level0 {
309313
.lib-css(margin, @_nav-level0-item-margin);
310314
display: inline-block;

0 commit comments

Comments
 (0)