close #2561 Fixed: Countries prefix flaw

This commit is contained in:
Cüneyt Şentürk
2022-08-10 11:16:30 +03:00
parent ddfdfdcb8e
commit 0fd7b4e0c9
8 changed files with 35 additions and 9 deletions

View File

@ -463,7 +463,7 @@ class Document extends Model
$location[] = $this->contact_state;
}
if ($this->contact_country) {
if ($this->contact_country && in_array($this->contact_country, trans('countries'))) {
$location[] = trans('countries.' . $this->contact_country);
}