mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for invalid locale
This commit is contained in:
parent
2ceaf880b8
commit
69834c9362
@ -297,7 +297,7 @@ class ClientContact extends Authenticatable implements HasLocalePreference
|
|||||||
|
|
||||||
return $languages->first(function ($item) {
|
return $languages->first(function ($item) {
|
||||||
return $item->id == $this->client->getSetting('language_id');
|
return $item->id == $this->client->getSetting('language_id');
|
||||||
})->locale;
|
})->locale ?? 'en';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function routeNotificationForMail($notification)
|
public function routeNotificationForMail($notification)
|
||||||
|
@ -189,7 +189,7 @@ class VendorContact extends Authenticatable implements HasLocalePreference
|
|||||||
|
|
||||||
return $languages->first(function ($item) {
|
return $languages->first(function ($item) {
|
||||||
return $item->id == $this->company->getSetting('language_id');
|
return $item->id == $this->company->getSetting('language_id');
|
||||||
})->locale;
|
})->locale ?? 'en';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user