mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for company export
This commit is contained in:
parent
0a3965b561
commit
8c96296f29
@ -501,12 +501,14 @@ class CompanyExport implements ShouldQueue
|
|||||||
unlink($zip_path);
|
unlink($zip_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$storage_file_path = Storage::disk(config('filesystems.default'))->url('backups/'.$file_name)
|
||||||
|
|
||||||
App::forgetInstance('translator');
|
App::forgetInstance('translator');
|
||||||
$t = app('translator');
|
$t = app('translator');
|
||||||
$t->replace(Ninja::transformTranslations($this->company->settings));
|
$t->replace(Ninja::transformTranslations($this->company->settings));
|
||||||
|
|
||||||
$nmo = new NinjaMailerObject;
|
$nmo = new NinjaMailerObject;
|
||||||
$nmo->mailable = new DownloadBackup(Storage::disk(config('filesystems.default'))->url('backups/'.$file_name), $this->company);
|
$nmo->mailable = new DownloadBackup($storage_file_path, $this->company);
|
||||||
$nmo->to_user = $this->user;
|
$nmo->to_user = $this->user;
|
||||||
$nmo->company = $this->company;
|
$nmo->company = $this->company;
|
||||||
$nmo->settings = $this->company->settings;
|
$nmo->settings = $this->company->settings;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user