mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01: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 $item->id == $this->client->getSetting('language_id');
|
||||
})->locale;
|
||||
})->locale ?? 'en';
|
||||
}
|
||||
|
||||
public function routeNotificationForMail($notification)
|
||||
|
@ -189,7 +189,7 @@ class VendorContact extends Authenticatable implements HasLocalePreference
|
||||
|
||||
return $languages->first(function ($item) {
|
||||
return $item->id == $this->company->getSetting('language_id');
|
||||
})->locale;
|
||||
})->locale ?? 'en';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user