Skip to content

Commit 679f8a4

Browse files
glo82145Manjusha.S
authored andcommitted
AC-2242::reverted merge
1 parent 417472f commit 679f8a4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

app/code/Magento/OfflineShipping/etc/db_schema.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
</constraint>
3939
</table>
4040
<table name="salesrule" resource="default" comment="Salesrule">
41-
<column xsi:type="smallint" name="simple_free_shipping" unsigned="true" nullable="true"
42-
identity="false" default="null" comment="Simple Free Shipping"/>
41+
<column xsi:type="smallint" name="simple_free_shipping" unsigned="true" nullable="false"
42+
identity="false" default="0" comment="Simple Free Shipping"/>
4343
</table>
4444
<table name="sales_order_item" resource="sales" comment="Sales Flat Order Item">
4545
<column xsi:type="smallint" name="free_shipping" unsigned="true" nullable="false" identity="false"

app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/Save.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ public function execute()
6464
{
6565
$data = $this->getRequest()->getPostValue();
6666
if ($data) {
67-
if ($data['simple_free_shipping'] === '') {
68-
$data['simple_free_shipping'] = null;
69-
}
7067
try {
7168
/** @var $model \Magento\SalesRule\Model\Rule */
7269
$model = $this->_objectManager->create(\Magento\SalesRule\Model\Rule::class);

0 commit comments

Comments
 (0)