mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fix translations for import email
This commit is contained in:
parent
1d58a87a24
commit
bce7667aa5
@ -91,6 +91,7 @@ use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
use Illuminate\Support\Str;
|
||||
use Turbo124\Beacon\Facades\LightLogs;
|
||||
use Illuminate\Support\Facades\App;
|
||||
|
||||
class Import implements ShouldQueue
|
||||
{
|
||||
@ -244,6 +245,10 @@ class Import implements ShouldQueue
|
||||
|
||||
// $this->fixData();
|
||||
try{
|
||||
App::forgetInstance('translator');
|
||||
$t = app('translator');
|
||||
$t->replace(Ninja::transformTranslations($this->company->settings));
|
||||
|
||||
Mail::to($this->user->email, $this->user->name())
|
||||
->send(new MigrationCompleted($this->company, implode("<br>",$check_data)));
|
||||
}
|
||||
|
@ -125,7 +125,7 @@ class ActivityRepository extends BaseRepository
|
||||
|
||||
$design = Design::find($entity_design_id);
|
||||
|
||||
if(!$entity->invitations()->exists()){
|
||||
if(!$entity->invitations()->exists() || !$design){
|
||||
nlog("No invitations for entity {$entity->id} - {$entity->number}");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user