Skip to content

Commit b265f9e

Browse files
authored
ENGCOM-5061: Fixed Issue magento#22640 magento#22655
2 parents 45789a1 + 9b81072 commit b265f9e

File tree

1 file changed

+11
-3
lines changed
  • app/code/Magento/Tax/Block/Adminhtml/Rate

1 file changed

+11
-3
lines changed

app/code/Magento/Tax/Block/Adminhtml/Rate/Form.php

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
use Magento\Tax\Controller\RegistryConstants;
1616

1717
/**
18+
* Tax rate form.
19+
*
1820
* @api
1921
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2022
* @since 100.0.2
@@ -108,7 +110,7 @@ public function __construct(
108110
}
109111

110112
/**
111-
* @return void
113+
* @inheritdoc
112114
*/
113115
protected function _construct()
114116
{
@@ -117,6 +119,8 @@ protected function _construct()
117119
}
118120

119121
/**
122+
* Prepare form before rendering HTML.
123+
*
120124
* @return $this
121125
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
122126
* @SuppressWarnings(PHPMD.NPathComplexity)
@@ -130,8 +134,9 @@ protected function _prepareForm()
130134
if ($taxRateId) {
131135
$taxRateDataObject = $this->_taxRateRepository->get($taxRateId);
132136
}
137+
// phpcs:ignore Magento2.CodeAnalysis.EmptyBlock
133138
} catch (NoSuchEntityException $e) {
134-
/* tax rate not found */
139+
//tax rate not found//
135140
}
136141

137142
$sessionFormValues = (array)$this->_coreRegistry->registry(RegistryConstants::CURRENT_TAX_RATE_FORM_DATA);
@@ -176,7 +181,10 @@ protected function _prepareForm()
176181
}
177182

178183
$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+
);
180188

181189
if (isset($formData['tax_calculation_rate_id']) && $formData['tax_calculation_rate_id'] > 0) {
182190
$fieldset->addField(

0 commit comments

Comments
 (0)