Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 2e157a9

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.3-develop
Accepted Public Pull Requests: - magento/magento2#15274: [Forwardport] Fixed typo in method name (by @dmytro-ch) - magento/magento2#15263: [Forwardport] Fix \Magento\Customer\Model\Customer\NotificationStorage class (by @adrian-martinez-interactiv4) - magento/magento2#14975: Fix for displaying a negative price for a custom option. (by @dverkade) - magento/magento2#14395: Fix for not working LESS extends (by @Igloczek)
2 parents e65dac4 + 24f640a commit 2e157a9

File tree

7 files changed

+20
-35
lines changed

7 files changed

+20
-35
lines changed

app/code/Magento/Catalog/view/base/web/js/price-options.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ define([
2020
optionConfig: {},
2121
optionHandlers: {},
2222
optionTemplate: '<%= data.label %>' +
23-
'<% if (data.finalPrice.value) { %>' +
23+
'<% if (data.finalPrice.value > 0) { %>' +
2424
' +<%- data.finalPrice.formatted %>' +
25+
'<% } else if (data.finalPrice.value < 0) { %>' +
26+
' <%- data.finalPrice.formatted %>' +
2527
'<% } %>',
2628
controlContainer: 'dd'
2729
};

app/code/Magento/Customer/Model/Customer/NotificationStorage.php

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
namespace Magento\Customer\Model\Customer;
77

8+
use Magento\Framework\App\ObjectManager;
89
use Magento\Framework\Cache\FrontendInterface;
910
use Magento\Framework\Serialize\SerializerInterface;
1011

@@ -18,21 +19,21 @@ class NotificationStorage
1819
private $cache;
1920

2021
/**
21-
* @param FrontendInterface $cache
22-
*/
23-
24-
/**
25-
* @param FrontendInterface $cache
22+
* @var SerializerInterface
2623
*/
2724
private $serializer;
2825

2926
/**
3027
* NotificationStorage constructor.
3128
* @param FrontendInterface $cache
29+
* @param SerializerInterface $serializer
3230
*/
33-
public function __construct(FrontendInterface $cache)
34-
{
31+
public function __construct(
32+
FrontendInterface $cache,
33+
SerializerInterface $serializer = null
34+
) {
3535
$this->cache = $cache;
36+
$this->serializer = $serializer ?: ObjectManager::getInstance()->get(SerializerInterface::class);
3637
}
3738

3839
/**
@@ -45,7 +46,7 @@ public function __construct(FrontendInterface $cache)
4546
public function add($notificationType, $customerId)
4647
{
4748
$this->cache->save(
48-
$this->getSerializer()->serialize([
49+
$this->serializer->serialize([
4950
'customer_id' => $customerId,
5051
'notification_type' => $notificationType
5152
]),
@@ -88,19 +89,4 @@ private function getCacheKey($notificationType, $customerId)
8889
{
8990
return 'notification_' . $notificationType . '_' . $customerId;
9091
}
91-
92-
/**
93-
* Get serializer
94-
*
95-
* @return SerializerInterface
96-
* @deprecated 100.2.0
97-
*/
98-
private function getSerializer()
99-
{
100-
if ($this->serializer === null) {
101-
$this->serializer = \Magento\Framework\App\ObjectManager::getInstance()
102-
->get(SerializerInterface::class);
103-
}
104-
return $this->serializer;
105-
}
10692
}

app/design/frontend/Magento/blank/Magento_Checkout/web/css/source/module/checkout/_tooltip.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// _____________________________________________
99

1010
@checkout-tooltip__hover__z-index: @tooltip__z-index;
11-
@checkout-tooltip-breakpoint__screen-m: @modal-popup-breakpoint-screen__m;
1211

1312
@checkout-tooltip-icon-arrow__font-size: 10px;
1413
@checkout-tooltip-icon-arrow__left: -( @checkout-tooltip-content__padding + @checkout-tooltip-icon-arrow__font-size - @checkout-tooltip-content__border-width);
@@ -138,7 +137,7 @@
138137
}
139138
}
140139

141-
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @checkout-tooltip-breakpoint__screen-m) {
140+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
142141
.field-tooltip {
143142
.field-tooltip-content {
144143
&:extend(.abs-checkout-tooltip-content-position-top-mobile all);

app/design/frontend/Magento/blank/Magento_Sales/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
}
263263

264264
.toolbar {
265-
&:extend(.abs-add-clearfix-desktop all);
265+
&:extend(.abs-add-clearfix-mobile all);
266266

267267
.pages {
268268
float: right;

app/design/frontend/Magento/blank/web/css/source/components/_modals_extend.less

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
@modal-popup-title__font-size: 26px;
1818
@modal-popup-title-mobile__font-size: @font-size__base;
19-
@modal-popup-breakpoint-screen__m: @screen__m;
2019

2120
@modal-slide__first__indent-left: 44px;
2221
@modal-slide-mobile__background-color: @color-gray-light01;
@@ -149,7 +148,7 @@
149148
}
150149
}
151150

152-
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @modal-popup-breakpoint-screen__m) {
151+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
153152
.modal-popup {
154153
&.modal-slide {
155154
.modal-inner-wrap[class] {
@@ -180,7 +179,7 @@
180179
// Desktop
181180
// _____________________________________________
182181

183-
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @modal-popup-breakpoint-screen__m) {
182+
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
184183
.modal-popup {
185184
&.modal-slide {
186185
.modal-footer {

app/design/frontend/Magento/luma/web/css/source/components/_modals_extend.less

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
@modal-popup-title__font-size: 26px;
1818
@modal-popup-title-mobile__font-size: @font-size__base;
19-
@modal-popup-breakpoint-screen__m: @screen__m;
2019

2120
@modal-slide__first__indent-left: 44px;
2221
@modal-slide-mobile__background-color: @color-gray-light01;
@@ -148,7 +147,7 @@
148147
}
149148
}
150149

151-
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @modal-popup-breakpoint-screen__m) {
150+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
152151
.modal-popup {
153152
&.modal-slide {
154153
.modal-inner-wrap[class] {
@@ -179,7 +178,7 @@
179178
// Desktop
180179
// _____________________________________________
181180

182-
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @modal-popup-breakpoint-screen__m) {
181+
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
183182
.modal-popup {
184183
&.modal-slide {
185184
.modal-footer {

lib/internal/Magento/Framework/App/Request/Http.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function setPathInfo($pathInfo = null)
149149
return $this;
150150
}
151151

152-
$requestUri = $this->removeRepitedSlashes($requestUri);
152+
$requestUri = $this->removeRepeatedSlashes($requestUri);
153153
$parsedRequestUri = explode('?', $requestUri, 2);
154154
$queryString = !isset($parsedRequestUri[1]) ? '' : '?' . $parsedRequestUri[1];
155155
$baseUrl = $this->getBaseUrl();
@@ -172,7 +172,7 @@ public function setPathInfo($pathInfo = null)
172172
* @param string $pathInfo
173173
* @return string
174174
*/
175-
private function removeRepitedSlashes($pathInfo)
175+
private function removeRepeatedSlashes($pathInfo)
176176
{
177177
$firstChar = (string)substr($pathInfo, 0, 1);
178178
if ($firstChar == '/') {

0 commit comments

Comments
 (0)