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

Commit 2f13af3

Browse files
Merge pull request #9 from hitesh-wagento/2.1-develop-PR-port-15878
[Backport] [Resolved : limiter float too generic]
2 parents 9b9cc60 + 950a668 commit 2f13af3

File tree

26 files changed

+80
-52
lines changed

26 files changed

+80
-52
lines changed

app/code/Magento/Backend/view/adminhtml/templates/widget/button/split.phtml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
<?php endif; ?>
4242
</div>
4343

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-
});
44+
<script type="text/x-magento-init">
45+
{
46+
".actions-split": {
47+
"Magento_Ui/js/grid/controls/button/split": {}
48+
}
49+
}
5150
</script>
51+

app/code/Magento/Catalog/view/frontend/templates/product/list.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $_helper = $this->helper('Magento\Catalog\Helper\Output');
4747
<?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
4848
<?php foreach ($_productCollection as $_product): ?>
4949
<?php /* @escapeNotVerified */ echo($iterator++ == 1) ? '<li class="item product product-item">' : '</li><li class="item product product-item">' ?>
50-
<div class="product-item-info" data-container="product-grid">
50+
<div class="product-item-info" data-container="product-<?= /* @escapeNotVerified */ $viewMode ?>">
5151
<?php
5252
$productImage = $block->getImage($_product, $image);
5353
if ($pos != null) {

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
@@ -69,7 +69,7 @@ public function canDisplay()
6969
}
7070

7171
/**
72-
* Retrieve disply item qty availablity
72+
* Retrieve display item qty availability
7373
*
7474
* @return false
7575
*/

app/code/Magento/Search/view/frontend/web/form-mini.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ define([
5151
this.autoComplete = $(this.options.destinationSelector);
5252
this.searchForm = $(this.options.formSelector);
5353
this.submitBtn = this.searchForm.find(this.options.submitBtn)[0];
54-
this.searchLabel = $(this.options.searchLabel);
54+
this.searchLabel = this.searchForm.find(this.options.searchLabel);
5555
this.isExpandable = this.options.isExpandable;
5656

5757
_.bindAll(this, '_onKeyDown', '_onPropertyChange', '_onSubmit');

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/web/js/form/components/fieldset.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ define([
109109
* @returns {Group} Chainable.
110110
*/
111111
_setClasses: function () {
112-
var addtional = this.additionalClasses,
112+
var additional = this.additionalClasses,
113113
classes;
114114

115-
if (_.isString(addtional)) {
116-
addtional = this.additionalClasses.split(' ');
115+
if (_.isString(additional)) {
116+
additional = this.additionalClasses.split(' ');
117117
classes = this.additionalClasses = {};
118118

119-
addtional.forEach(function (name) {
119+
additional.forEach(function (name) {
120120
classes[name] = true;
121121
}, this);
122122
}

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
@@ -54,14 +54,14 @@ define([
5454
* @returns {Group} Chainable.
5555
*/
5656
_setClasses: function () {
57-
var addtional = this.additionalClasses,
57+
var additional = this.additionalClasses,
5858
classes;
5959

60-
if (_.isString(addtional)) {
61-
addtional = this.additionalClasses.split(' ');
60+
if (_.isString(additional)) {
61+
additional = this.additionalClasses.split(' ');
6262
classes = this.additionalClasses = {};
6363

64-
addtional.forEach(function (name) {
64+
additional.forEach(function (name) {
6565
classes[name] = true;
6666
}, this);
6767
}

app/code/Magento/Wishlist/CustomerData/Wishlist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © 2013-2018 Magento, Inc. All rights reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Wishlist\CustomerData;
@@ -142,7 +142,7 @@ protected function getItemData(\Magento\Wishlist\Model\Item $wishlistItem)
142142
* Retrieve product image data
143143
*
144144
* @param \Magento\Catalog\Model\Product $product
145-
* @return \Magento\Catalog\Block\Product\Image
145+
* @return array
146146
* @SuppressWarnings(PHPMD.NPathComplexity)
147147
*/
148148
protected function getImageData($product)

app/design/adminhtml/Magento/backend/web/app/setup/styles/less/lib/_buttons.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@
9999
background-color: transparent;
100100
border: none;
101101
color: @link__color;
102-
font-family: @btn__base__font-size;
103-
font-size: 1.5rem; // ToDo UI: Check font-size and standardize
102+
font-family: @font-family__base;
103+
font-size: @base__font-size;
104104

105105
&:hover,
106106
&:active,

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/module/_toolbar.less

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,9 @@
188188
.lib-icon-font-symbol(@icon-list);
189189
}
190190

191-
.limiter {
192-
float: right;
193-
194-
.products.wrapper ~ .toolbar & {
191+
.toolbar {
192+
.products.wrapper ~ & .limiter {
193+
float: right;
195194
display: block;
196195
}
197196
}

app/design/frontend/Magento/luma/Magento_Catalog/web/css/source/module/_listings.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
// _____________________________________________
2626

2727
& when (@media-common = true) {
28+
2829
// Product Lists
2930
.products {
3031
margin: @indent__l 0;

app/design/frontend/Magento/luma/Magento_Catalog/web/css/source/module/_toolbar.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@
235235
}
236236
}
237237

238-
.limiter {
239-
float: right;
240-
.products.wrapper ~ .toolbar & {
238+
.toolbar {
239+
.products.wrapper ~ & .limiter {
240+
float: right;
241241
display: block;
242242
}
243243
}

app/design/frontend/Magento/luma/Magento_Theme/web/css/source/_module.less

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,16 @@
6262
// Common
6363
// _____________________________________________
6464

65-
& when (@media-common = true) {
66-
body {
65+
.page-wrapper {
66+
.ie9 & {
6767
.lib-css(background-color, @page__background-color);
68+
min-height: 0;
6869
}
70+
}
6971

70-
// ToDo UI: move it directly to .page-wrapper (now it doesn't appear in mediaquery cuz of size of css)
71-
.page-wrapper {
72-
.ie9 & {
73-
.lib-css(background-color, @page__background-color);
74-
min-height: 0;
75-
}
72+
& when (@media-common = true) {
73+
body {
74+
.lib-css(background-color, @page__background-color);
7675
}
7776

7877
//

dev/tests/integration/testsuite/Magento/AdvancedPricingImportExport/_files/create_products.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
1616
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
1717
->setWebsiteIds([1])
18-
->setCateroryIds([])
18+
->setCategoryIds([])
1919
->setStockData(['qty' => 100, 'is_in_stock' => 1])
2020
->setIsObjectNew(true)
2121
->save();

dev/tests/integration/testsuite/Magento/Catalog/_files/category_duplicates.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED
4747
)->setWebsiteIds(
4848
[1]
49-
)->setCateroryIds(
49+
)->setCategoryIds(
5050
[]
5151
)->setStockData(
5252
['qty' => 100, 'is_in_stock' => 1]

dev/tests/integration/testsuite/Magento/Catalog/_files/multiple_products.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
2626
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
2727
->setWebsiteIds([1])
28-
->setCateroryIds([])
28+
->setCategoryIds([])
2929
->setStockData(['use_config_manage_stock' => 1, 'qty' => 100, 'is_qty_decimal' => 0, 'is_in_stock' => 1])
3030
->save();
3131

@@ -49,7 +49,7 @@
4949
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG)
5050
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
5151
->setWebsiteIds([1])
52-
->setCateroryIds([])
52+
->setCategoryIds([])
5353
->setStockData(['use_config_manage_stock' => 1, 'qty' => 50, 'is_qty_decimal' => 0, 'is_in_stock' => 1])
5454
->save();
5555

@@ -68,6 +68,6 @@
6868
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_IN_CATALOG)
6969
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_DISABLED)
7070
->setWebsiteIds([1])
71-
->setCateroryIds([])
71+
->setCategoryIds([])
7272
->setStockData(['use_config_manage_stock' => 1, 'qty' => 140, 'is_qty_decimal' => 0, 'is_in_stock' => 1])
7373
->save();

dev/tests/integration/testsuite/Magento/CatalogImportExport/_files/product_export_data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
)->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
7676
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
7777
->setWebsiteIds([1])
78-
->setCateroryIds([])
78+
->setCategoryIds([])
7979
->setStockData(['qty' => 100, 'is_in_stock' => 1])
8080
->setCanSaveCustomOptions(true)
8181
->setCategoryIds([333])

dev/tests/integration/testsuite/Magento/CatalogImportExport/_files/product_export_data_special_chars.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
->setVisibility(\Magento\Catalog\Model\Product\Visibility::VISIBILITY_BOTH)
3030
->setStatus(\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED)
3131
->setWebsiteIds([1])
32-
->setCateroryIds([])
32+
->setCategoryIds([])
3333
->setStockData(['qty' => 100, 'is_in_stock' => 1])
3434
->setCanSaveCustomOptions(true)
3535
->setCategoryIds([333])

dev/tests/integration/testsuite/Magento/CatalogImportExport/_files/product_export_with_product_links_data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED
3333
)->setWebsiteIds(
3434
[1]
35-
)->setCateroryIds(
35+
)->setCategoryIds(
3636
[]
3737
)->setStockData(
3838
['qty' => 100, 'is_in_stock' => 1]

dev/tests/integration/testsuite/Magento/Framework/View/_files/Magento/ModuleA/view/adminhtml/product/product.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
overflow: hidden;
1414
padding: 5px 6px 3px;
1515
margin-left: 12px;
16-
color: #7a7976;;
16+
color: #7a7976;
1717
}
1818

1919
[class^=" catalog-product-"] .page-actions .action-back:hover,

dev/tests/integration/testsuite/Magento/ImportExport/_files/product.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
\Magento\Catalog\Model\Product\Attribute\Source\Status::STATUS_ENABLED
2424
)->setWebsiteIds(
2525
[1]
26-
)->setCateroryIds(
26+
)->setCategoryIds(
2727
[]
2828
)->setStockData(
2929
['qty' => 100, 'is_in_stock' => 1]

dev/tests/static/framework/Magento/Sniffs/Less/PropertiesSortingSniff.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
100100
*/
101101
private function validatePropertiesSorting(PHP_CodeSniffer_File $phpcsFile, $stackPtr, array $properties)
102102
{
103+
// Fix needed for cases when incorrect properties passed for validation due to bug in PHP tokens.
104+
$symbolsForSkip = ['(', 'block'];
105+
$properties = array_filter(
106+
$properties,
107+
function ($var) use ($symbolsForSkip) {
108+
return !in_array($var, $symbolsForSkip);
109+
}
110+
);
103111

104112
$originalProperties = $properties;
105113
sort($properties);

lib/internal/Magento/Framework/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function open()
4949
$this->_adapter->checkDependencies();
5050

5151
if (!file_exists($this->_fileName)) {
52-
throw new \Exception("File '{$this->_fileName}' does not exists.");
52+
throw new \Exception("File '{$this->_fileName}' does not exist.");
5353
}
5454

5555
$this->_adapter->open($this->_fileName);

lib/web/extjs/resources/css/ytheme-magento.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
background:url(../images/magento/loading_bg.gif) no-repeat #eae2ca;
1616
padding:85px 15px 15px 15px;
1717
font-size:14px;
18-
font-weight:bold;;
18+
font-weight:bold;
1919
color:#611B06;
2020
width:206px;
2121
text-align:center;

setup/src/Magento/Setup/Model/Grid/Module.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ private function getModulesInfo(array $moduleList)
178178
private function addGeneralInfo(array $items)
179179
{
180180
foreach ($items as &$item) {
181-
$item['moduleName'] = $item['moduleName'] ?: $this->packageInfo->getModuleName($item['name']);
181+
$item['moduleName'] = isset($item['moduleName'])
182+
? $item['moduleName']
183+
: $this->packageInfo->getModuleName($item['name']);
184+
182185
$item['enable'] = $this->moduleList->has($item['moduleName']);
183186
$vendorSource = $item['name'] == self::UNKNOWN_PACKAGE_NAME ? $item['moduleName'] : $item['name'];
184187
$item['vendor'] = ucfirst(current(preg_split('%[/_]%', $vendorSource)));

0 commit comments

Comments
 (0)