Skip to content

Commit 6ef57bd

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #20929: resolve typo errors for js record.js (by @neeta-wagento) - #20837: [Backport] Fixed apply discount button alignment on checkout page (by @amol2jcommerce) - #20886: [Backport] #20409 Fixed Unnecessary slash in namespace (by @milindsingh) - #20863: [Backport] Update Filter.php fix issue #20624 (by @irajneeshgupta) - #20784: [Backport] Gift-option-message-overlap-edit-and-remove-button-2.2 (by @ajay2jcommerce) - #20642: [Backport] #12194: Tier price on configurable product sorting so� (by @amol2jcommerce) - #19612: [Backport] Fix: Attribute Option with zero at the beginning does not work if there is already option with the same number without the zero [REST API] (by @SikailoISM) - #19667: [Backport] chore: remove old code for IE9 (by @DanielRuf) Fixed GitHub Issues: - #20137: On checkout page apply discount button is not align with input box (reported by @nainesh2jcommerce) has been fixed in #20837 by @amol2jcommerce in 2.2-develop branch Related commits: 1. 4a3354a 2. 1a75856 3. 496c6af - #20409: Magento\Catalog\Api\ProductRenderListInterface returns products regardless of visibility (reported by @Floddy) has been fixed in #20886 by @milindsingh in 2.2-develop branch Related commits: 1. 9092e7a - #20624: `\Magento\ImportExport\Block\Adminhtml\Export\Filter::_getSelectHtmlWithValue()` method overwrites self $value argument (reported by @andkirby) has been fixed in #20863 by @irajneeshgupta in 2.2-develop branch Related commits: 1. 05bc8a6 2. 34da4ca - #20604: Gift option message overlap edit and remove button (reported by @ajay2jcommerce) has been fixed in #20784 by @ajay2jcommerce in 2.2-develop branch Related commits: 1. adf8d4c - #19436: Attribute Option with zero at the bigining does not work if there is already option with the same number without the zero (REST API)) (reported by @zexperto) has been fixed in #19612 by @SikailoISM in 2.2-develop branch Related commits: 1. 14aa091
2 parents ddd278a + 9bd2e6a commit 6ef57bd

File tree

9 files changed

+24
-23
lines changed

9 files changed

+24
-23
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/OptionManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function add($attributeCode, $option)
4747
/** @var \Magento\Eav\Api\Data\AttributeOptionInterface $attributeOption */
4848
$attributeOption = $attributeOption->getLabel();
4949
});
50-
if (in_array($option->getLabel(), $currentOptions)) {
50+
if (in_array($option->getLabel(), $currentOptions, true)) {
5151
return false;
5252
}
5353
}

app/code/Magento/Catalog/Model/ResourceModel/Product/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2205,7 +2205,7 @@ private function getTierPriceSelect(array $productIds)
22052205
$this->getLinkField() . ' IN(?)',
22062206
$productIds
22072207
)->order(
2208-
$this->getLinkField()
2208+
'qty'
22092209
);
22102210
return $select;
22112211
}

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/CollectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public function testAddTierPriceDataByGroupId()
318318
[ '(customer_group_id=? AND all_groups=0) OR all_groups=1', $customerGroupId]
319319
)
320320
->willReturnSelf();
321-
$select->expects($this->once())->method('order')->with('entity_id')->willReturnSelf();
321+
$select->expects($this->once())->method('order')->with('qty')->willReturnSelf();
322322
$this->connectionMock->expects($this->once())
323323
->method('fetchAll')
324324
->with($select)
@@ -370,7 +370,7 @@ public function testAddTierPriceData()
370370
$select->expects($this->exactly(1))->method('where')
371371
->with('entity_id IN(?)', [1])
372372
->willReturnSelf();
373-
$select->expects($this->once())->method('order')->with('entity_id')->willReturnSelf();
373+
$select->expects($this->once())->method('order')->with('qty')->willReturnSelf();
374374
$this->connectionMock->expects($this->once())
375375
->method('fetchAll')
376376
->with($select)

app/code/Magento/CatalogInventory/etc/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<argument name="batchSizeManagement" xsi:type="object">Magento\CatalogInventory\Model\Indexer\Stock\BatchSizeManagement</argument>
112112
</arguments>
113113
</type>
114-
<type name="\Magento\Framework\Data\CollectionModifier">
114+
<type name="Magento\Framework\Data\CollectionModifier">
115115
<arguments>
116116
<argument name="conditions" xsi:type="array">
117117
<item name="stockStatusCondition" xsi:type="object">Magento\CatalogInventory\Model\ProductCollectionStockCondition</item>

app/code/Magento/ImportExport/Block/Adminhtml/Export/Filter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ protected function _getSelectHtmlWithValue(Attribute $attribute, $value)
236236
if ($attribute->getFilterOptions()) {
237237
$options = [];
238238

239-
foreach ($attribute->getFilterOptions() as $value => $label) {
240-
$options[] = ['value' => $value, 'label' => $label];
239+
foreach ($attribute->getFilterOptions() as $optionValue => $label) {
240+
$options[] = ['value' => $optionValue, 'label' => $label];
241241
}
242242
} else {
243243
$options = $attribute->getSource()->getAllOptions(false);

app/code/Magento/Ui/view/base/web/js/dynamic-rows/record.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ define([
2525
},
2626
listens: {
2727
position: 'initPosition',
28-
elems: 'setColumnVisibileListener'
28+
elems: 'setColumnVisibleListener'
2929
},
3030
links: {
3131
position: '${ $.name }.${ $.positionProvider }:value'
@@ -123,7 +123,7 @@ define([
123123
/**
124124
* Set column visibility listener
125125
*/
126-
setColumnVisibileListener: function () {
126+
setColumnVisibleListener: function () {
127127
var elem = _.find(this.elems(), function (curElem) {
128128
return !curElem.hasOwnProperty('visibleListener');
129129
});

app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout/_payment-options.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@
6969

7070
.payment-option-content {
7171
.lib-css(padding, 0 0 @indent__base @checkout-payment-option-content__padding__xl);
72+
.primary {
73+
.action {
74+
&.action-apply {
75+
margin-right: 0;
76+
}
77+
}
78+
}
7279
}
7380

7481
.payment-option-inner {

app/design/frontend/Magento/luma/Magento_GiftMessage/web/css/source/_module.less

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@
246246
.gift-messages-order {
247247
margin-bottom: @indent__m;
248248
}
249+
250+
.gift-message-summary {
251+
padding-right: 7rem;
252+
}
249253
}
250254

251255
//
@@ -282,10 +286,6 @@
282286
}
283287
}
284288

285-
.gift-message-summary {
286-
padding-right: 7rem;
287-
}
288-
289289
//
290290
// In-table block
291291
// ---------------------------------------------

lib/web/varien/js.js

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -607,17 +607,11 @@ if (!("console" in window) || !("firebug" in console))
607607
* @example fireEvent($('my-input', 'click'));
608608
*/
609609
function fireEvent(element, event) {
610-
if (document.createEvent) {
611-
// dispatch for all browsers except IE before version 9
612-
var evt = document.createEvent('HTMLEvents');
610+
// dispatch event
611+
var evt = document.createEvent('HTMLEvents');
613612

614-
evt.initEvent(event, true, true); // event type, bubbling, cancelable
615-
return element.dispatchEvent(evt);
616-
}
617-
// dispatch for IE before version 9
618-
var evt = document.createEventObject();
619-
620-
return element.fireEvent('on' + event, evt);
613+
evt.initEvent(event, true, true); // event type, bubbling, cancelable
614+
return element.dispatchEvent(evt);
621615

622616
}
623617

0 commit comments

Comments
 (0)