File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,11 @@ public function __construct(
46
46
) {
47
47
parent ::__construct ($ context , $ coreRegistry , $ fileFactory , $ dateFilter );
48
48
$ this ->timezone = $ timezone ?? \Magento \Framework \App \ObjectManager::getInstance ()->get (
49
- TimezoneInterface::class
50
- );
49
+ TimezoneInterface::class
50
+ );
51
51
$ this ->dataPersistor = $ dataPersistor ?? \Magento \Framework \App \ObjectManager::getInstance ()->get (
52
- DataPersistorInterface::class
53
- );
52
+ DataPersistorInterface::class
53
+ );
54
54
}
55
55
56
56
/**
@@ -65,7 +65,7 @@ public function execute()
65
65
$ data = $ this ->getRequest ()->getPostValue ();
66
66
if ($ data ) {
67
67
$ data ['simple_free_shipping ' ] = ($ data ['simple_free_shipping ' ] === '' )
68
- ? null : $ data ['simple_free_shipping ' ];
68
+ ? null : $ data ['simple_free_shipping ' ];
69
69
70
70
try {
71
71
/** @var $model \Magento\SalesRule\Model\Rule */
@@ -106,10 +106,10 @@ public function execute()
106
106
}
107
107
108
108
if (isset (
109
- $ data ['simple_action ' ]
110
- ) && $ data ['simple_action ' ] == 'by_percent ' && isset (
111
- $ data ['discount_amount ' ]
112
- )
109
+ $ data ['simple_action ' ]
110
+ ) && $ data ['simple_action ' ] == 'by_percent ' && isset (
111
+ $ data ['discount_amount ' ]
112
+ )
113
113
) {
114
114
$ data ['discount_amount ' ] = min (100 , $ data ['discount_amount ' ]);
115
115
}
You can’t perform that action at this time.
0 commit comments