Skip to content

Commit

Permalink
Additional condition in getRegion() method
Browse files Browse the repository at this point in the history
Added additional condition in getRegion() method to prevent Magento from throwing error in VatValidator::validate method.
  • Loading branch information
Leone authored Apr 30, 2019
1 parent 93a8162 commit a2fc3b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/Magento/Customer/Model/Address/AbstractAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ public function getRegion()
}
} elseif (is_string($region)) {
$this->setData('region', $region);
} elseif (!$regionId && is_array($region)) {
$this->setData('region', $regionId);
}

return $this->getData('region');
Expand Down

0 comments on commit a2fc3b9

Please sign in to comment.