Skip to content

Commit 688e1d8

Browse files
committed
Merge remote-tracking branch 'mainline/2.1-develop' into 2.1.8-develop
2 parents f56188d + 7d673e1 commit 688e1d8

File tree

6 files changed

+46
-7
lines changed

6 files changed

+46
-7
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ If you are a new GitHub user, we recommend that you create your own [free github
2929
3. Create and test your work.
3030
4. Fork the Magento 2 repository according to [Fork a repository instructions](http://devdocs.magento.com/guides/v2.0/contributor-guide/contributing.html#fork) and when you are ready to send us a pull request – follow [Create a pull request instructions](http://devdocs.magento.com/guides/v2.0/contributor-guide/contributing.html#pull_request).
3131
5. Once your contribution is received, Magento 2 development team will review the contribution and collaborate with you as needed to improve the quality of the contribution.
32+
33+
## Code of Conduct
34+
35+
Please note that this project is released with a Contributor Code of Conduct. We expect you to agree to its terms when participating in this project.
36+
The full text is available in the repository [Wiki](https://github.com/magento/magento2/wiki/Magento-Code-of-Conduct).

app/code/Magento/CatalogInventory/Ui/DataProvider/Product/Form/Modifier/AdvancedInventory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ private function prepareMeta()
213213
'dataScope' => 'qty',
214214
'validation' => [
215215
'validate-number' => true,
216+
'validate-integer' => true,
216217
'less-than-equals-to' => StockDataFilter::MAX_QTY_VALUE,
217218
],
218219
'imports' => [

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
<item name="dataScope" xsi:type="string">quantity_and_stock_status.qty</item>
9696
<item name="validation" xsi:type="array">
9797
<item name="validate-number" xsi:type="boolean">true</item>
98+
<item name="validate-integer" xsi:type="boolean">true</item>
9899
<item name="less-than-equals-to" xsi:type="number">99999999</item>
99100
</item>
100101
<item name="sortOrder" xsi:type="number">200</item>

app/code/Magento/Quote/Setup/UpgradeSchema.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,38 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
5555
$setup->getFkName('quote_item', 'product_id', 'catalog_product_entity', 'entity_id')
5656
);
5757
}
58+
if (version_compare($context->getVersion(), '2.0.4', '<')) {
59+
$setup->getConnection(self::$connectionName)->changeColumn(
60+
$setup->getTable('quote_address', self::$connectionName),
61+
'firstname',
62+
'firstname',
63+
[
64+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
65+
'length' => 255,
66+
'comment' => 'Firstname'
67+
]
68+
);
69+
$setup->getConnection(self::$connectionName)->changeColumn(
70+
$setup->getTable('quote_address', self::$connectionName),
71+
'middlename',
72+
'middlename',
73+
[
74+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
75+
'length' => 40,
76+
'comment' => 'Middlename'
77+
]
78+
);
79+
$setup->getConnection(self::$connectionName)->changeColumn(
80+
$setup->getTable('quote_address', self::$connectionName),
81+
'lastname',
82+
'lastname',
83+
[
84+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
85+
'length' => 255,
86+
'comment' => 'Lastname'
87+
]
88+
);
89+
}
5890
$setup->endSetup();
5991
}
6092
}

app/code/Magento/Quote/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_Quote" setup_version="2.0.3">
9+
<module name="Magento_Quote" setup_version="2.0.4">
1010
</module>
1111
</config>

app/code/Magento/Ui/view/base/web/js/lib/validation/rules.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -572,15 +572,15 @@ define([
572572
},
573573
$.mage.__('Please enter a valid number in this field.')
574574
],
575-
'validate-integer': [
575+
"validate-integer": [
576576
function(value) {
577577
return (
578-
utils.isEmptyNoTrim(value)
579-
|| (!isNaN(utils.parseNumber(value)) && /^\s*-?\d*\s*$/.test(value))
580-
);
581-
},
578+
utils.isEmptyNoTrim(value)
579+
|| (!isNaN(utils.parseNumber(value)) && /^\s*-?\d*\s*$/.test(value))
580+
);
581+
},
582582
$.mage.__('Please enter a valid integer in this field.')
583-
],
583+
],
584584
"validate-number-range": [
585585
function(value, param) {
586586
if (utils.isEmptyNoTrim(value)) {

0 commit comments

Comments
 (0)