Skip to content

Commit c62d922

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.3-develop
Accepted Public Pull Requests: - #15853: Fixed return type hinting in DocBlocks for Wishlist module (by @rogyar) - #15695: Fixed a couple of typos (by @dverkade) - #15833: [Forwardport] Format the javascript code #10 (by @chirag-wagento) - #15755: [Forwardport] Error 500 in Module Manager (by @vijay-wagento) - #15794: [Forwardport] [Resolved : Styling <select> by changing less variables in Luma theme� (by @hitesh-wagento) - #15809: [Forwardport] fix: support multiple minisearch widget instances (by @DanielRuf) - #15558: Fixes in catalog component blocks [2.3-develop] (by @mhauri) - #15572: [Forwardport] Docblock typo fixes (by @rogyar) - #15748: [Forwardport] Prevent multiple add-to-cart initializations in case of ajax loaded product listing (by @vijay-wagento) - #15745: [Forwardport] Fix method name (typo) (by @vijay-wagento) - #15746: [Forwardport] Resolved : UI Component listing action column outside of screen when... (by @vgelani) - #15692: Fix minor issues in ui export converter classes (by @dmytro-ch) - #15649: [Forwardport] Fixes in config module (by @mhauri) - #15540: fix for Wrong price amount on product page #11717 (by @HirokazuNishi) Fixed GitHub Issues: - #15192: Module Manager module grid is not working Magento 2.2.4 (reported by @jignesh-baldha) has been fixed in #15755 by @vijay-wagento in 2.3-develop branch Related commits: 1. 486f7a7 2. 1b5d1d1 - #15608: Styling <select> by changing less variables in Luma theme doesn't work as expected (reported by @denistrator) has been fixed in #15794 by @hitesh-wagento in 2.3-develop branch Related commits: 1. 9fa6425 - #14153: UI Component listing action column outside of screen when too many columns (reported by @milansimek) has been fixed in #15746 by @vgelani in 2.3-develop branch Related commits: 1. 365bfb4 - #11717: Wrong price amount on product page (reported by @HirokazuNishi) has been fixed in #15540 by @HirokazuNishi in 2.3-develop branch Related commits: 1. cf05a84 2. 67a2038
2 parents 5565a24 + 8f9f374 commit c62d922

File tree

38 files changed

+107
-60
lines changed

38 files changed

+107
-60
lines changed

app/code/Magento/Catalog/Block/Adminhtml/Category/Tree.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public function getBreadcrumbsJavascript($path, $javascriptVarName)
325325
*
326326
* @param Node|array $node
327327
* @param int $level
328-
* @return string
328+
* @return array
329329
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
330330
* @SuppressWarnings(PHPMD.NPathComplexity)
331331
*/

app/code/Magento/Catalog/Block/Adminhtml/Category/Widget/Chooser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ function (node, e) {
144144
*
145145
* @param \Magento\Framework\Data\Tree\Node|array $node
146146
* @param int $level
147-
* @return string
147+
* @return array
148148
*/
149149
protected function _getNodeJson($node, $level = 0)
150150
{

app/code/Magento/Catalog/Block/Adminhtml/Form/Renderer/Fieldset/Element.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Element extends \Magento\Backend\Block\Widget\Form\Renderer\Fieldset\Eleme
2121
/**
2222
* Retrieve data object related with form
2323
*
24-
* @return \Magento\Catalog\Model\Product || \Magento\Catalog\Model\Category
24+
* @return \Magento\Catalog\Model\Product|\Magento\Catalog\Model\Category
2525
*/
2626
public function getDataObject()
2727
{

app/code/Magento/Catalog/Block/Adminhtml/Product/Attribute/Grid.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ protected function _prepareColumns()
101101
'type' => 'options',
102102
'options' => ['1' => __('Yes'), '0' => __('No')],
103103
'align' => 'center'
104-
],
105-
'is_user_defined'
104+
]
106105
);
107106

108107
$this->_eventManager->dispatch('product_attribute_grid_build', ['grid' => $this]);

app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Tab/Attributes/Search.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function getSelectorOptions()
8181
*
8282
* @param string $labelPart
8383
* @param int $templateId
84-
* @return \Magento\Catalog\Model\ResourceModel\Product\Attribute\Collection
84+
* @return array
8585
*/
8686
public function getSuggestedAttributes($labelPart, $templateId = null)
8787
{

app/code/Magento/Catalog/Block/Adminhtml/Rss/Grid/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function isRssAllowed()
6969
}
7070

7171
/**
72-
* @return string
72+
* @return array
7373
*/
7474
protected function getLinkParams()
7575
{

app/code/Magento/Catalog/Block/Category/Rss/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getLabel()
6262
}
6363

6464
/**
65-
* @return string
65+
* @return array
6666
*/
6767
protected function getLinkParams()
6868
{

app/code/Magento/Catalog/Block/Product/AbstractProduct.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function getAddToCompareUrl()
195195
* Gets minimal sales quantity
196196
*
197197
* @param \Magento\Catalog\Model\Product $product
198-
* @return int|null
198+
* @return float|null
199199
*/
200200
public function getMinimalQty($product)
201201
{

app/code/Magento/Catalog/Block/Product/View/Options/AbstractOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function getPrice($price, $includingTax = null)
178178
* Returns price converted to current currency rate
179179
*
180180
* @param float $price
181-
* @return float
181+
* @return float|string
182182
*/
183183
public function getCurrencyPrice($price)
184184
{

app/code/Magento/Catalog/Block/Rss/Product/Special.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function _construct()
107107
}
108108

109109
/**
110-
* @return string
110+
* @return array
111111
*/
112112
public function getRssData()
113113
{

app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ define([
3838
_bindSubmit: function () {
3939
var self = this;
4040

41+
if (this.element.data('catalog-addtocart-initialized')) {
42+
return;
43+
}
44+
45+
this.element.data('catalog-addtocart-initialized', 1);
4146
this.element.on('submit', function (e) {
4247
e.preventDefault();
4348
self.submitForm($(this));

app/code/Magento/Config/Model/Config/Importer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public function import(array $data)
124124
$this->scopeConfig->clean();
125125
}
126126

127-
$this->state->emulateAreaCode(Area::AREA_ADMINHTML, function () use ($changedData, $data) {
127+
$this->state->emulateAreaCode(Area::AREA_ADMINHTML, function () use ($changedData) {
128128
$this->scope->setCurrentScope(Area::AREA_ADMINHTML);
129129

130130
// Invoke saving of new values.

app/code/Magento/Config/Test/Unit/Block/System/Config/Form/Field/ImageTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function testGetElementHtmlWithValue()
7272
'showInWebsite' => '1',
7373
'showInStore' => '1',
7474
'label' => null,
75-
'backend_model' => \Magento\BackendModelConfig\Backend\Image::class,
75+
'backend_model' => \Magento\Config\Model\Config\Backend\Image::class,
7676
'upload_dir' => [
7777
'config' => 'system/filesystem/media',
7878
'scope_info' => '1',

app/code/Magento/Multishipping/Block/Checkout/Overview.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,19 @@ public function getQuote()
319319
}
320320

321321
/**
322+
* @deprecated
323+
* typo in method name, see getBillingAddressTotals()
322324
* @return mixed
323325
*/
324326
public function getBillinAddressTotals()
327+
{
328+
return $this->getBillingAddressTotals();
329+
}
330+
331+
/**
332+
* @return mixed
333+
*/
334+
public function getBillingAddressTotals()
325335
{
326336
$address = $this->getQuote()->getBillingAddress();
327337
return $this->getShippingAddressTotals($address);

app/code/Magento/Multishipping/Block/Checkout/Shipping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Magento\Quote\Model\Quote\Address;
1010

1111
/**
12-
* Multishipping checkout shipping
12+
* Mustishipping checkout shipping
1313
*
1414
* @api
1515
* @author Magento Core Team <core@magentocommerce.com>

app/code/Magento/Multishipping/view/frontend/templates/checkout/overview.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
<?php endforeach; ?>
187187
</tbody>
188188
<tfoot>
189-
<?= /* @noEscape */ $block->renderTotals($block->getBillinAddressTotals()); ?>
189+
<?= /* @noEscape */ $block->renderTotals($block->getBillingAddressTotals()); ?>
190190
</tfoot>
191191
</table>
192192
</div>

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Sidebar/AbstractSidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function canDisplay()
7171
}
7272

7373
/**
74-
* Retrieve disply item qty availability
74+
* Retrieve display item qty availability
7575
*
7676
* @return false
7777
*/

app/code/Magento/Ui/Model/Export/ConvertToCsv.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
namespace Magento\Ui\Model\Export;
77

88
use Magento\Framework\App\Filesystem\DirectoryList;
9+
use Magento\Framework\Exception\FileSystemException;
910
use Magento\Framework\Exception\LocalizedException;
1011
use Magento\Framework\Filesystem;
12+
use Magento\Framework\Filesystem\Directory\WriteInterface;
1113
use Magento\Ui\Component\MassAction\Filter;
1214

1315
/**
@@ -16,7 +18,7 @@
1618
class ConvertToCsv
1719
{
1820
/**
19-
* @var DirectoryList
21+
* @var WriteInterface
2022
*/
2123
protected $directory;
2224

@@ -30,11 +32,17 @@ class ConvertToCsv
3032
*/
3133
protected $pageSize = null;
3234

35+
/**
36+
* @var Filter
37+
*/
38+
protected $filter;
39+
3340
/**
3441
* @param Filesystem $filesystem
3542
* @param Filter $filter
3643
* @param MetadataProvider $metadataProvider
3744
* @param int $pageSize
45+
* @throws FileSystemException
3846
*/
3947
public function __construct(
4048
Filesystem $filesystem,

app/code/Magento/Ui/Model/Export/ConvertToXml.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010
use Magento\Framework\App\Filesystem\DirectoryList;
1111
use Magento\Framework\Convert\Excel;
1212
use Magento\Framework\Convert\ExcelFactory;
13+
use Magento\Framework\Exception\FileSystemException;
1314
use Magento\Framework\Exception\LocalizedException;
1415
use Magento\Framework\Filesystem;
16+
use Magento\Framework\Filesystem\Directory\WriteInterface;
1517
use Magento\Ui\Component\MassAction\Filter;
1618

1719
/**
@@ -20,7 +22,7 @@
2022
class ConvertToXml
2123
{
2224
/**
23-
* @var DirectoryList
25+
* @var WriteInterface
2426
*/
2527
protected $directory;
2628

@@ -49,12 +51,18 @@ class ConvertToXml
4951
*/
5052
protected $fields;
5153

54+
/**
55+
* @var Filter
56+
*/
57+
protected $filter;
58+
5259
/**
5360
* @param Filesystem $filesystem
5461
* @param Filter $filter
5562
* @param MetadataProvider $metadataProvider
5663
* @param ExcelFactory $excelFactory
5764
* @param SearchResultIteratorFactory $iteratorFactory
65+
* @throws FileSystemException
5866
*/
5967
public function __construct(
6068
Filesystem $filesystem,
@@ -87,6 +95,7 @@ protected function getOptions()
8795
* Returns DB fields list
8896
*
8997
* @return array
98+
* @throws LocalizedException
9099
*/
91100
protected function getFields()
92101
{
@@ -102,6 +111,7 @@ protected function getFields()
102111
*
103112
* @param DocumentInterface $document
104113
* @return array
114+
* @throws LocalizedException
105115
*/
106116
public function getRowData(DocumentInterface $document)
107117
{

app/code/Magento/Ui/view/base/templates/control/button/split.phtml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</button>
1818
<?php if ($block->hasSplit()): ?>
1919
<button <?= $block->getToggleAttributesHtml() ?>>
20-
<span>Select</span>
20+
<span><?= /* @escapeNotVerified */ __('Select'); ?></span>
2121
</button>
2222

2323
<?php if (!$block->getDisabled()): ?>
@@ -40,12 +40,10 @@
4040
<?php endif; ?>
4141
<?php endif; ?>
4242
</div>
43-
44-
<script>
45-
require(['jquery'], function($){
46-
$('.actions-split')
47-
.on('click.splitDefault', '.action-default', function() {
48-
$(this).siblings('.dropdown-menu').find('.item-default').trigger('click');
49-
});
50-
});
51-
</script>
43+
<script type="text/x-magento-init">
44+
{
45+
".actions-split": {
46+
"Magento_Ui/js/grid/controls/button/split": {}
47+
}
48+
}
49+
</script>

app/code/Magento/Ui/view/base/web/js/form/components/fieldset.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ define([
115115
* @returns {Group} Chainable.
116116
*/
117117
_setClasses: function () {
118-
var addtional = this.additionalClasses,
118+
var additional = this.additionalClasses,
119119
classes;
120120

121-
if (_.isString(addtional)) {
122-
addtional = this.additionalClasses.split(' ');
121+
if (_.isString(additional)) {
122+
additional = this.additionalClasses.split(' ');
123123
classes = this.additionalClasses = {};
124124

125-
addtional.forEach(function (name) {
125+
additional.forEach(function (name) {
126126
classes[name] = true;
127127
}, this);
128128
}

app/code/Magento/Ui/view/base/web/js/form/components/group.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ define([
5858
* @returns {Group} Chainable.
5959
*/
6060
_setClasses: function () {
61-
var addtional = this.additionalClasses,
61+
var additional = this.additionalClasses,
6262
classes;
6363

64-
if (_.isString(addtional)) {
65-
addtional = this.additionalClasses.split(' ');
64+
if (_.isString(additional)) {
65+
additional = this.additionalClasses.split(' ');
6666
classes = this.additionalClasses = {};
6767

68-
addtional.forEach(function (name) {
68+
additional.forEach(function (name) {
6969
classes[name] = true;
7070
}, this);
7171
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copyright © Magento, Inc. All rights reserved.
3+
* See COPYING.txt for license details.
4+
*/
5+
6+
define([
7+
'jquery'
8+
], function ($) {
9+
'use strict';
10+
11+
return function (data, element) {
12+
13+
$(element).on('click.splitDefault', '.action-default', function () {
14+
$(this).siblings('.dropdown-menu').find('.item-default').trigger('click');
15+
});
16+
};
17+
});

app/code/Magento/User/Model/Backend/Config/ObserverConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function getAdminPasswordLifetime()
7272
}
7373

7474
/**
75-
* Get admin maximum security failures from config
75+
* Get admin maxiumum security failures from config
7676
*
7777
* @return int
7878
*/

app/code/Magento/Wishlist/Block/Rss/EmailLink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class EmailLink extends Link
2424
protected $_template = 'rss/email.phtml';
2525

2626
/**
27-
* @return string
27+
* @return array
2828
*/
2929
protected function getLinkParams()
3030
{

app/code/Magento/Wishlist/Block/Rss/Link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function isRssAllowed()
7272
}
7373

7474
/**
75-
* @return string
75+
* @return array
7676
*/
7777
protected function getLinkParams()
7878
{

app/code/Magento/Wishlist/Helper/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public function isAllowInCart()
503503
/**
504504
* Retrieve customer name
505505
*
506-
* @return string|void
506+
* @return string|null
507507
*/
508508
public function getCustomerName()
509509
{

app/code/Magento/Wishlist/Plugin/Ui/DataProvider/WishlistSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(Data $helper)
3232
/**
3333
* Add tax data to result
3434
*
35-
* @param \Magento\Checkout\CustomerData\Cart $subject
35+
* @param \Magento\Catalog\Ui\DataProvider\Product\Listing\DataProvider $subject
3636
* @param array $result
3737
* @return array
3838
* @SuppressWarnings(PHPMD.UnusedFormalParameter)

0 commit comments

Comments
 (0)