Skip to content

Commit 6f8fc45

Browse files
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #15515: [fix] dynamical assigned property in webapi (by @mhauri) - #15301: Refactor JavsScript for customer logout (by @patelnimesh1988) - #15512: Fixes in ui module (by @mhauri) - #15499: Issue 15469: Javascript error dropdowns.js (by @brian-labelle) - #15382: Fix for Magnifier in inside mode (by @kacperchara) Fixed GitHub Issues: - #15469: lib/web/mage/dropdowns.js fails when autoclose is set to true (reported by @brian-labelle) has been fixed in #15499 by @brian-labelle in 2.2-develop branch Related commits: 1. 31e3b63 - #4977: Magnifier doesn't work with mode set to inner (reported by @theycallmepepper) has been fixed in #15382 by @kacperchara in 2.2-develop branch Related commits: 1. c427ff1
2 parents 4405582 + d071e5b commit 6f8fc45

File tree

9 files changed

+221
-202
lines changed

9 files changed

+221
-202
lines changed

app/code/Magento/Customer/view/frontend/templates/logout.phtml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
/** @var \Magento\Framework\View\Element\Template $block */
88
?>
99
<p><?= $block->escapeHtml(__('You have signed out and will go to our homepage in 5 seconds.')) ?></p>
10-
<script>
11-
require([
12-
"jquery",
13-
"mage/mage"
14-
], function($){
15-
16-
$($.mage.redirect("<?= $block->escapeJs($block->escapeUrl($block->getUrl())) ?>", "assign", 5000));
17-
18-
});
10+
<script type="text/x-magento-init">
11+
{
12+
"*": {
13+
"Magento_Customer/js/logout-redirect": {
14+
"url": "<?= $block->escapeJs($block->escapeUrl($block->getUrl())) ?>"
15+
}
16+
}
17+
}
1918
</script>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
define([
7+
'jquery',
8+
'mage/mage'
9+
], function ($) {
10+
'use strict';
11+
12+
return function (data) {
13+
$($.mage.redirect(data.url, 'assign', 5000));
14+
};
15+
});

app/code/Magento/Ui/Component/Bookmark.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ public function prepare()
8282
}
8383
}
8484

85-
$this->setData('config', array_replace_recursive($config, $this->getConfiguration($this)));
85+
$this->setData('config', array_replace_recursive($config, $this->getConfiguration()));
8686

8787
parent::prepare();
8888

89-
$jsConfig = $this->getConfiguration($this);
89+
$jsConfig = $this->getConfiguration();
9090
$this->getContext()->addComponentDefinition($this->getComponentName(), $jsConfig);
9191
}
9292
}

app/code/Magento/Ui/Test/Unit/Component/Control/ActionPoolTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ protected function setUp()
8383
$this->items[$this->key] = $this->createPartialMock(\Magento\Ui\Component\Control\Item::class, ['setData']);
8484
$this->actionPool = new ActionPool(
8585
$this->contextMock,
86-
$this->itemFactoryMock,
87-
$this->toolbarBlockMock
86+
$this->itemFactoryMock
8887
);
8988
}
9089

app/code/Magento/Webapi/Model/Soap/Fault.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ class Fault
3939
const NODE_DETAIL_WRAPPER = 'GenericFault';
4040
/**#@-*/
4141

42-
/**#@-*/
42+
/**
43+
* @var string
44+
*/
4345
protected $_soapFaultCode;
4446

4547
/**
@@ -114,7 +116,7 @@ public function __construct(
114116
\Magento\Framework\Locale\ResolverInterface $localeResolver,
115117
State $appState
116118
) {
117-
$this->_soapCode = $exception->getOriginator();
119+
$this->_soapFaultCode = $exception->getOriginator();
118120
$this->_parameters = $exception->getDetails();
119121
$this->_wrappedErrors = $exception->getErrors();
120122
$this->stackTrace = $exception->getStackTrace() ?: $exception->getTraceAsString();
@@ -194,7 +196,7 @@ public function getDetails()
194196
*/
195197
public function getSoapCode()
196198
{
197-
return $this->_soapCode;
199+
return $this->_soapFaultCode;
198200
}
199201

200202
/**

app/design/frontend/Magento/luma/etc/view.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@
231231
<var name="height"></var> <!-- Height of magnifier block -->
232232
<var name="eventType">hover</var> <!-- Action that atcivates zoom (hover/click) -->
233233
<var name="enabled">false</var> <!-- Turn on/off magnifier (true/false) -->
234+
<var name="mode">outside</var> <!-- Zoom type (outside/inside) -->
234235
</var>
235236

236237
<var name="breakpoints">

lib/web/mage/dropdowns.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,9 @@ define([
127127
}
128128

129129
elem.on('click.toggleDropdown', function () {
130-
var el;
130+
var el = actionElem;
131131

132132
if (options.autoclose === true) {
133-
el = actionElem;
134-
135133
actionElem = $();
136134
$(document).trigger('click.hideDropdown');
137135
actionElem = el;

lib/web/mage/gallery/gallery.less

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -736,24 +736,30 @@
736736
text-align: center;
737737
top: 0;
738738
z-index: @z-index-10;
739+
overflow: hidden;
740+
741+
.magnifier-large {
742+
width: auto;
743+
height: auto;
744+
max-height: none;
745+
max-width: none;
746+
border: none;
747+
position: absolute;
748+
z-index: @z-index-1;
749+
}
739750
}
740751

741752
.magnifier-loader-text {
742753
margin-top: 10px;
743754
}
744755

745-
.magnifier-large {
746-
position: absolute;
747-
width: 32%;
748-
z-index: @z-index-1;
749-
}
750-
751756
.magnifier-preview {
752757
bottom: 0;
753758
left: 58%;
754759
overflow: hidden;
755760
padding: 0;
756761
position: absolute;
762+
z-index: 2;
757763
top: 215px;
758764
&:not(.hidden) {
759765
background-color: @color-white;

0 commit comments

Comments
 (0)