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