Skip to content

Commit 11e57bb

Browse files
author
Olga Nakonechna
committed
MAGETWO-39138: Tax Rate edit form shows empty selected value instead of *
1 parent b6654ab commit 11e57bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Tax/Model/Calculation/Rate/Converter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ public function createArrayFromServiceObject(
7474
'zip_is_range' => $returnNumericLogic?0:false,
7575
];
7676

77+
if ($taxRateFormData['tax_region_id'] === '0') {
78+
$taxRateFormData['tax_region_id'] = '';
79+
}
80+
7781
if ($taxRate->getZipFrom() && $taxRate->getZipTo()) {
7882
$taxRateFormData['zip_is_range'] = $returnNumericLogic?1:true;
7983
$taxRateFormData['zip_from'] = $taxRate->getZipFrom();

0 commit comments

Comments
 (0)