File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
SalesRule/Controller/Adminhtml/Promo/Quote Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 38
38
</constraint >
39
39
</table >
40
40
<table name =" salesrule" resource =" default" comment =" Salesrule" >
41
- <column xsi : type =" smallint " name =" simple_free_shipping" unsigned =" true" nullable =" true"
42
- identity =" false" default =" 0 " comment =" Simple Free Shipping" />
41
+ <column xsi : type =" varchar " name =" simple_free_shipping" unsigned =" true" nullable =" true"
42
+ identity =" false" default =" NULL " comment =" Simple Free Shipping" />
43
43
</table >
44
44
<table name =" sales_order_item" resource =" sales" comment =" Sales Flat Order Item" >
45
45
<column xsi : type =" smallint" name =" free_shipping" unsigned =" true" nullable =" false" identity =" false"
Original file line number Diff line number Diff line change @@ -63,10 +63,8 @@ public function __construct(
63
63
public function execute ()
64
64
{
65
65
$ data = $ this ->getRequest ()->getPostValue ();
66
- if ($ data ['simple_free_shipping ' ]==="" ) {
67
- $ data ['simple_free_shipping ' ]=null ;
68
- }
69
66
if ($ data ) {
67
+ if ($ data ['simple_free_shipping ' ] === '' ) { $ data ['simple_free_shipping ' ] = null ; }
70
68
try {
71
69
/** @var $model \Magento\SalesRule\Model\Rule */
72
70
$ model = $ this ->_objectManager ->create (\Magento \SalesRule \Model \Rule::class);
You can’t perform that action at this time.
0 commit comments