File tree 1 file changed +11
-3
lines changed
app/code/Magento/Tax/Block/Adminhtml/Rate 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 17
17
use Magento \Tax \Controller \RegistryConstants ;
18
18
19
19
/**
20
+ * Tax rate form.
21
+ *
20
22
* @api
21
23
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
22
24
* @since 100.0.2
@@ -110,7 +112,7 @@ public function __construct(
110
112
}
111
113
112
114
/**
113
- * @return void
115
+ * @inheritdoc
114
116
*/
115
117
protected function _construct ()
116
118
{
@@ -119,6 +121,8 @@ protected function _construct()
119
121
}
120
122
121
123
/**
124
+ * Prepare form before rendering HTML.
125
+ *
122
126
* @return $this
123
127
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
124
128
* @SuppressWarnings(PHPMD.NPathComplexity)
@@ -132,8 +136,9 @@ protected function _prepareForm()
132
136
if ($ taxRateId ) {
133
137
$ taxRateDataObject = $ this ->_taxRateRepository ->get ($ taxRateId );
134
138
}
139
+ // phpcs:ignore Magento2.CodeAnalysis.EmptyBlock
135
140
} catch (NoSuchEntityException $ e ) {
136
- /* tax rate not found * /
141
+ // tax rate not found/ /
137
142
}
138
143
139
144
$ sessionFormValues = (array )$ this ->_coreRegistry ->registry (RegistryConstants::CURRENT_TAX_RATE_FORM_DATA );
@@ -176,7 +181,10 @@ protected function _prepareForm()
176
181
}
177
182
178
183
$ legend = $ this ->getShowLegend () ? __ ('Tax Rate Information ' ) : '' ;
179
- $ fieldset = $ form ->addFieldset ('base_fieldset ' , ['legend ' => $ legend , 'class ' => 'form-inline ' ]);
184
+ $ fieldset = $ form ->addFieldset (
185
+ 'base_fieldset ' ,
186
+ ['legend ' => $ legend , 'class ' => 'admin__scope-old form-inline ' ]
187
+ );
180
188
181
189
if (isset ($ formData ['tax_calculation_rate_id ' ]) && $ formData ['tax_calculation_rate_id ' ] > 0 ) {
182
190
$ fieldset ->addField (
You can’t perform that action at this time.
0 commit comments