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 15
15
use Magento \Tax \Controller \RegistryConstants ;
16
16
17
17
/**
18
+ * Tax rate form.
19
+ *
18
20
* @api
19
21
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
20
22
* @since 100.0.2
@@ -108,7 +110,7 @@ public function __construct(
108
110
}
109
111
110
112
/**
111
- * @return void
113
+ * @inheritdoc
112
114
*/
113
115
protected function _construct ()
114
116
{
@@ -117,6 +119,8 @@ protected function _construct()
117
119
}
118
120
119
121
/**
122
+ * Prepare form before rendering HTML.
123
+ *
120
124
* @return $this
121
125
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
122
126
* @SuppressWarnings(PHPMD.NPathComplexity)
@@ -130,8 +134,9 @@ protected function _prepareForm()
130
134
if ($ taxRateId ) {
131
135
$ taxRateDataObject = $ this ->_taxRateRepository ->get ($ taxRateId );
132
136
}
137
+ // phpcs:ignore Magento2.CodeAnalysis.EmptyBlock
133
138
} catch (NoSuchEntityException $ e ) {
134
- /* tax rate not found * /
139
+ // tax rate not found/ /
135
140
}
136
141
137
142
$ 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