Skip to content

Commit c148bf6

Browse files
committed
Merge remote-tracking branch 'origin/AC-1199' into Hammer_PlatForm_Health_246_Scope_29092022
2 parents fa3d6ec + 10b5415 commit c148bf6

File tree

15 files changed

+3481
-8411
lines changed

15 files changed

+3481
-8411
lines changed

app/code/Magento/CheckoutAgreements/Test/Mftf/Test/AdminDeleteActiveTextTermEntityTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<group value="mtf_migrated"/>
2121
</annotations>
2222
<before>
23+
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
2324
<magentoCLI command="config:set checkout/options/enable_agreements 1" stepKey="setEnableTermsOnCheckout"/>
2425
<actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin" />
2526
<createData entity="SimpleTwo" stepKey="createdProduct"/>
@@ -30,6 +31,8 @@
3031
<actionGroup ref="AdminTermsConditionsSaveTermActionGroup" stepKey="saveNewTerm"/>
3132
</before>
3233
<after>
34+
<!-- Disable shipping method for customer with default address -->
35+
<magentoCLI command="config:set {{DisableFlatRateConfigData.path}} {{DisableFlatRateConfigData.value}}" stepKey="disableFlatRate"/>
3336
<magentoCLI command="config:set checkout/options/enable_agreements 0" stepKey="setDisableTermsOnCheckout"/>
3437
<deleteData createDataKey="createdProduct" stepKey="deletedProduct"/>
3538
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

app/code/Magento/Swatches/view/adminhtml/web/js/form/element/swatch-visual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ define([
240240
};
241241

242242
swatchComponents.iframe.off('load');
243-
swatchComponents.iframe.load(iframeHandler);
243+
swatchComponents.iframe.on('load', iframeHandler);
244244
swatchComponents.form.submit();
245245
$(this).val('');
246246
});

app/code/Magento/Swatches/view/adminhtml/web/js/visual.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ define([
374374
};
375375

376376
swatchComponents.iframe.off('load');
377-
swatchComponents.iframe.load(iframeHandler);
377+
swatchComponents.iframe.on('load', iframeHandler);
378378
swatchComponents.form.submit();
379379
$(this).val('');
380380
});

app/code/Magento/Theme/view/base/requirejs-config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ var config = {
5252
}
5353
},
5454
shim: {
55-
'jquery/jquery-migrate': ['jquery'],
5655
'mage/adminhtml/backup': ['prototype'],
5756
'mage/captcha': ['prototype'],
5857
'mage/new-gallery': ['jquery'],
@@ -76,9 +75,6 @@ var config = {
7675
'tinycolor': 'jquery/spectrum/tinycolor',
7776
'jquery-ui-modules': 'jquery/ui-modules'
7877
},
79-
deps: [
80-
'jquery/jquery-migrate'
81-
],
8278
config: {
8379
text: {
8480
'headers': {

app/code/Magento/Ui/view/base/web/js/grid/columns/image-preview.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ define([
169169
* Update image data when image preview is opened
170170
*/
171171
updateImageData: function () {
172-
var img = $(this.previewImageSelector + ' img');
172+
var img = $(this.previewImageSelector + ' img'), self;
173173

174174
if (!img.get(0)) {
175175
setTimeout(function () {
@@ -179,10 +179,12 @@ define([
179179
this.updateHeight();
180180
this.scrollToPreview();
181181
} else {
182-
img.load(function () {
183-
this.updateHeight();
184-
this.scrollToPreview();
185-
}.bind(this));
182+
self = this;
183+
184+
img.on('load', function () {
185+
self.updateHeight();
186+
self.scrollToPreview();
187+
});
186188
}
187189
},
188190

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,7 @@
347347
"trentrichardson/jquery-timepicker-addon": "lib/web/jquery/jquery-ui-timepicker-addon.js",
348348
"components/jquery": [
349349
"lib/web/jquery.js",
350-
"lib/web/jquery/jquery.min.js",
351-
"lib/web/jquery/jquery-migrate.js"
350+
"lib/web/jquery/jquery.min.js"
352351
],
353352
"blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",
354353
"components/jqueryui": [

composer.lock

Lines changed: 12 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/tests/integration/testsuite/Magento/Framework/Composer/ComposerInformationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testGetRequiredPhpVersion($composerDir)
7979
['composerFactory' => $this->composerFactory]
8080
);
8181

82-
$this->assertEquals("~7.1.3||~7.2.0", $composerInfo->getRequiredPhpVersion());
82+
$this->assertEquals("~8.1.0", $composerInfo->getRequiredPhpVersion());
8383
}
8484

8585
/**

dev/tests/integration/testsuite/Magento/Framework/Composer/_files/testFromClone/composer.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"AFL-3.0"
88
],
99
"require": {
10-
"php": "~7.0.0||~8.0.0",
10+
"php": "~8.1.0",
1111
"ext-ctype": "*",
1212
"ext-curl": "*",
1313
"ext-dom": "*",
@@ -171,9 +171,7 @@
171171
"linkorb/jsmin-php": "lib/internal/JSMin",
172172
"components/jquery": [
173173
"lib/web/jquery.js",
174-
"lib/web/jquery/jquery.min.js",
175-
"lib/web/jquery/jquery-migrate.js",
176-
"lib/web/jquery/jquery-migrate.min.js"
174+
"lib/web/jquery/jquery.min.js"
177175
],
178176
"blueimp/jquery-file-upload": "lib/web/jquery/fileUploader",
179177
"components/jqueryui": [
@@ -187,6 +185,9 @@
187185
}
188186
},
189187
"config": {
188+
"allow-plugins": {
189+
"magento/*": true
190+
},
190191
"sort-packages": true,
191192
"use-include-path": true
192193
},

0 commit comments

Comments
 (0)