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

Commit fd29691

Browse files
committed
Merge branch '2.2-develop' of github.com:magento/magento2ce into MAGETWO-92447
2 parents 8677971 + 45a7e0c commit fd29691

File tree

24 files changed

+47
-24
lines changed

24 files changed

+47
-24
lines changed

app/code/Magento/CatalogInventory/view/adminhtml/ui_component/product_form.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@
568568
<settings>
569569
<scopeLabel>[GLOBAL]</scopeLabel>
570570
<validation>
571-
<rule name="validate-digits" xsi:type="boolean">true</rule>
571+
<rule name="validate-integer" xsi:type="boolean">true</rule>
572572
<rule name="validate-number" xsi:type="boolean">true</rule>
573573
</validation>
574574
<label translate="true">Qty Increments</label>

app/code/Magento/CatalogInventory/view/adminhtml/web/js/components/qty-validator-changer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ define([
2020
var isDigits = value !== 1;
2121

2222
this.validation['validate-integer'] = isDigits;
23-
this.validation['validate-digits'] = isDigits;
2423
this.validation['less-than-equals-to'] = isDigits ? 99999999 : 99999999.9999;
2524
this.validate();
2625
}

app/code/Magento/Cron/etc/cron_groups.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<schedule_ahead_for>20</schedule_ahead_for>
1212
<schedule_lifetime>15</schedule_lifetime>
1313
<history_cleanup_every>10</history_cleanup_every>
14-
<history_success_lifetime>10080</history_success_lifetime>
15-
<history_failure_lifetime>10080</history_failure_lifetime>
14+
<history_success_lifetime>60</history_success_lifetime>
15+
<history_failure_lifetime>4320</history_failure_lifetime>
1616
<use_separate_process>0</use_separate_process>
1717
</group>
1818
</config>

app/code/Magento/Customer/view/frontend/templates/form/confirmation.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="field email required">
1515
<label for="email_address" class="label"><span><?= $block->escapeHtml(__('Email')) ?></span></label>
1616
<div class="control">
17-
<input type="email" name="email" id="email_address" class="input-text" value="<?= $block->escapeHtmlAttr($block->getEmail()) ?>" data-validate="{required:true, 'validate-email':true}">
17+
<input type="email" name="email" id="email_address" class="input-text" value="<?= $block->escapeHtmlAttr($block->getEmail()) ?>" data-validate="{required:true, 'validate-email':true}" data-mage-init='{"mage/trim-input":{}}'>
1818
</div>
1919
</div>
2020
</fieldset>

app/code/Magento/Indexer/etc/cron_groups.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<schedule_ahead_for>4</schedule_ahead_for>
1212
<schedule_lifetime>2</schedule_lifetime>
1313
<history_cleanup_every>10</history_cleanup_every>
14-
<history_success_lifetime>10080</history_success_lifetime>
15-
<history_failure_lifetime>10080</history_failure_lifetime>
14+
<history_success_lifetime>60</history_success_lifetime>
15+
<history_failure_lifetime>4320</history_failure_lifetime>
1616
<use_separate_process>1</use_separate_process>
1717
</group>
1818
</config>

app/code/Magento/Shipping/Model/Carrier/AbstractCarrierInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function checkAvailableShipCountries(\Magento\Framework\DataObject $reque
9090
* @return $this|\Magento\Framework\DataObject|boolean
9191
* @api
9292
*/
93-
public function processAdditionalValidation(\Magento\Framework\DataObject $request);
93+
public function proccessAdditionalValidation(\Magento\Framework\DataObject $request);
9494

9595
/**
9696
* Determine whether current carrier enabled for activity

app/code/Magento/TaxImportExport/Model/Rate/CsvImportHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ protected function _importRate(array $rateData, array $regionsCache, array $stor
237237
$countryCode = $rateData[1];
238238
$country = $this->_countryFactory->create()->loadByCode($countryCode, 'iso2_code');
239239
if (!$country->getId()) {
240-
throw new \Magento\Framework\Exception\LocalizedException(__('One of the countries has invalid code.'));
240+
throw new \Magento\Framework\Exception\LocalizedException(__('Country code is invalid: %1', $countryCode));
241241
}
242242
$regionsCache = $this->_addCountryRegionsToCache($countryCode, $regionsCache);
243243

app/code/Magento/TaxImportExport/i18n/en_US.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Rate,Rate
1212
"Invalid file upload attempt","Invalid file upload attempt"
1313
"Invalid file upload attempt.","Invalid file upload attempt."
1414
"Invalid file format.","Invalid file format."
15-
"One of the countries has invalid code.","One of the countries has invalid code."
15+
"Country code is invalid: %1","Country code is invalid: %1"
1616
"Import Tax Rates","Import Tax Rates"
1717
"Export Tax Rates","Export Tax Rates"
1818
CSV,CSV

app/code/Magento/Ui/view/base/web/templates/form/components/collection.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<legend class="admin__legend">
3131
<span text="$parent.label"/>
3232
</legend><br />
33-
33+
3434
<each args="getRegion('body')" render=""/>
3535
</fieldset>
3636
</div>

app/code/Magento/Ui/view/base/web/templates/form/element/checkbox-set.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
<div class="admin__field-control"
1717
css="'_with-tooltip': $data.tooltip">
1818
<div class="admin__field admin__field-option" outereach="options">
19-
<input
19+
<input
2020
ko-checked="$parent.value"
2121
ko-disabled="$parent.disabled"
2222
css="
2323
'admin__control-radio': !$parent.multiple,
2424
'admin__control-checkbox': $parent.multiple"
2525
attr="
26-
id: ++ko.uid,
26+
id: ++ko.uid,
2727
value: value,
2828
type: $parent.multiple ? 'checkbox' : 'radio'"/>
2929

app/code/Magento/Ui/view/base/web/templates/form/field.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<div class="admin__field-note" if="$data.notice" attr="id: noticeId">
3636
<span translate="notice"/>
3737
</div>
38-
38+
3939
<div class="admin__additional-info" if="$data.additionalInfo" html="$data.additionalInfo"></div>
4040

4141
<render args="$data.service.template" if="$data.hasService()"/>

app/code/Magento/Ui/view/base/web/templates/grid/editing/bulk.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</button>
1414
</with>
1515
</if>
16-
16+
1717
<if args="$data.isEditor">
1818
<label class="admin__field-label admin__field-label-vertical" attr="for: uid" translate="'All in Column'"/>
1919
<render/>

app/code/Magento/Ui/view/base/web/templates/grid/editing/row.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<span class="data-grid-row-changed" css="_changed: $parent.hasChanges">
1212
<span class="data-grid-row-changed-tooltip" translate="'Record contains unsaved changes.'"/>
1313
</span>
14-
</td>
15-
14+
</td>
15+
1616
<!-- ko ifnot: $parent.isActionsColumn($data) -->
1717
<td if="$col.isEditor" template="$parent.fieldTmpl"/>
1818
<td ifnot="$col.isEditor" css="$col.getFieldClass()" template="$col.getBody()"/>

app/code/Magento/Ui/view/base/web/templates/grid/sticky/sticky.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div style="display: none;" css="stickyClass" afterRender="setStickyNode">
88
<span class="data-grid-cap-left" afterRender="setLeftCap"/>
99
<span class="data-grid-cap-right" afterRender="setRightCap"/>
10-
10+
1111
<div afterRender="setStickyToolbarNode">
1212
<div class="admin__data-grid-header">
1313
<div class="admin__data-grid-header-row">

app/code/Magento/Ui/view/base/web/templates/group/group.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<render args="elementTmpl" if="element.input_type == 'checkbox' || element.input_type == 'radio'"/>
2020
</if>
2121
</each>
22-
22+
2323
<each args="getRegion('insideGroup')" render=""/>
2424

2525
<each args="elems" if="validateWholeGroup">

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@
242242
},
243243
"psr-0": {
244244
"": [
245-
"app/code/"
245+
"app/code/",
246+
"generated/code/"
246247
]
247248
},
248249
"files": [

dev/tests/integration/testsuite/Magento/TaxImportExport/Model/Rate/CsvImportHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testImportFromCsvFileWithCorrectData()
5757
/**
5858
* @magentoDbIsolation enabled
5959
* @expectedException \Magento\Framework\Exception\LocalizedException
60-
* @expectedExceptionMessage One of the countries has invalid code.
60+
* @expectedExceptionMessage Country code is invalid: ZZ
6161
*/
6262
public function testImportFromCsvFileThrowsExceptionWhenCountryCodeIsInvalid()
6363
{

lib/internal/Magento/Framework/Api/Search/FilterGroup.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
/**
1212
* Groups two or more filters together using a logical OR
13+
*
14+
* @api
15+
* @since 100.0.2
1316
*/
1417
class FilterGroup extends AbstractSimpleObject
1518
{

lib/internal/Magento/Framework/Api/Search/FilterGroupBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
/**
1414
* Builder for FilterGroup Data.
15+
*
16+
* @api
17+
* @since 100.0.2
1518
*/
1619
class FilterGroupBuilder extends AbstractSimpleObjectBuilder
1720
{

lib/internal/Magento/Framework/Api/SortOrder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
/**
1313
* Data object for sort order.
14+
*
15+
* @api
16+
* @since 100.0.2
1417
*/
1518
class SortOrder extends AbstractSimpleObject
1619
{

lib/internal/Magento/Framework/Api/SortOrderBuilder.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
/**
1010
* Builder for sort order data object.
1111
* @method SortOrder create()
12+
*
13+
* @api
14+
* @since 100.0.2
1215
*/
1316
class SortOrderBuilder extends AbstractSimpleObjectBuilder
1417
{

lib/internal/Magento/Framework/View/Template/Html/Minifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ public function minify($file)
131131
'#(?<!:|\\\\|\'|")//(?!\s*\<\!\[)(?!\s*]]\>)[^\n\r]*#',
132132
'',
133133
preg_replace(
134-
'#(?<!:|\'|")//[^\n\r]*(\s\?\>)#',
135-
'$1',
134+
'#(?<!:|\'|")//[^\n\r]*(\?\>)#',
135+
' $1',
136136
preg_replace(
137137
'#(?<!:)//[^\n\r]*(\<\?php)[^\n\r]*(\s\?\>)[^\n\r]*#',
138138
'',

lib/internal/Magento/Framework/View/Test/Unit/Template/Html/MinifierTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ public function testMinify()
156156
<?php echo '//some.link.com/' ?>
157157
<em>inline text</em>
158158
<a href="http://www.<?php echo 'hi' ?>"></a>
159+
<?php// if (\$block->getSomeVariable() > 1):?>
160+
<?php echo \$block->getChildHtml('someChildBlock'); ?>
161+
<?php //else:?>
162+
<?php // echo \$block->getChildHtml('anotherChildBlock'); ?>
163+
<?php // endif; ?>
159164
</body>
160165
</html>
161166
TEXT;
@@ -179,7 +184,7 @@ public function testMinify()
179184
}
180185
});
181186
//]]>
182-
</script><?php echo "http://some.link.com/" ?> <?php echo "//some.link.com/" ?> <?php echo '//some.link.com/' ?> <em>inline text</em> <a href="http://www.<?php echo 'hi' ?>"></a></body></html>
187+
</script><?php echo "http://some.link.com/" ?> <?php echo "//some.link.com/" ?> <?php echo '//some.link.com/' ?> <em>inline text</em> <a href="http://www.<?php echo 'hi' ?>"></a> <?php ?> <?php echo \$block->getChildHtml('someChildBlock'); ?> <?php ?> <?php ?> <?php ?></body></html>
183188
TEXT;
184189

185190
$this->appDirectoryMock->expects($this->once())

lib/web/css/source/components/_modals.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@
100100
left: 0;
101101
overflow-y: auto;
102102

103+
&.confirm {
104+
.modal-inner-wrap {
105+
.lib-css(width, @modal-popup-confirm__width);
106+
}
107+
}
108+
103109
&._show {
104110
.modal-inner-wrap {
105111
-webkit-transform: translateY(0);

0 commit comments

Comments
 (0)