Skip to content

Commit 165e6ae

Browse files
committed
Merge remote-tracking branch 'origin/2.2-develop' into MAGETWO-82385
2 parents 0be60e9 + a72e4d1 commit 165e6ae

File tree

10 files changed

+33
-26
lines changed

10 files changed

+33
-26
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/blank/web/css/source/_navigation.less

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,18 @@
131131
);
132132
}
133133
}
134-
135134
.switcher-dropdown {
136135
.lib-list-reset-styles();
136+
display: none;
137137
padding: @indent__s 0;
138138
}
139-
139+
.switcher-options {
140+
&.active {
141+
.switcher-dropdown {
142+
display: block;
143+
}
144+
}
145+
}
140146
.header.links {
141147
.lib-list-reset-styles();
142148
border-bottom: 1px solid @color-gray82;
@@ -207,7 +213,7 @@
207213
}
208214

209215
.nav-toggle {
210-
&:after{
216+
&:after {
211217
background: rgba(0, 0, 0, @overlay__opacity);
212218
content: '';
213219
display: block;

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)