1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Fixes for overriding ninja mailer

This commit is contained in:
David Bomba 2021-05-22 16:03:34 +10:00
parent 51999bd8a3
commit 9ddfe1ac6f
2 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ class NinjaMailerJob implements ShouldQueue
{ {
$this->nmo = $nmo; $this->nmo = $nmo;
$this->override = $override;
} }

View File

@ -210,7 +210,7 @@ class Import implements ShouldQueue
$this->{$method}($data[$import]); $this->{$method}($data[$import]);
} }
if(Ninja::isHosted()) if(Ninja::isHosted() && array_key_exists('ninja_tokens', $data))
$this->processNinjaTokens($data['ninja_tokens']); $this->processNinjaTokens($data['ninja_tokens']);
$this->setInitialCompanyLedgerBalances(); $this->setInitialCompanyLedgerBalances();