Skip to content

Commit

Permalink
Fixes #942
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed Mar 1, 2022
1 parent 122d1ed commit 65ea0da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/system/libraries/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ protected function processCountryValue($country, &$result)
$result['format'] = $country['format'];
}
elseif (is_numeric($country)) {
$this->loadCountries();

if ($countryModel = $this->countriesCollection->find($country)) {
$result['country'] = $countryModel->country_name;
$result['format'] = $countryModel->format;
Expand Down

0 comments on commit 65ea0da

Please sign in to comment.