From 9ddfe1ac6fe722411931d511b757e58c883512d8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 22 May 2021 16:03:34 +1000 Subject: [PATCH] Fixes for overriding ninja mailer --- app/Jobs/Mail/NinjaMailerJob.php | 1 + app/Jobs/Util/Import.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Jobs/Mail/NinjaMailerJob.php b/app/Jobs/Mail/NinjaMailerJob.php index f3730dece8..ad58e767ee 100644 --- a/app/Jobs/Mail/NinjaMailerJob.php +++ b/app/Jobs/Mail/NinjaMailerJob.php @@ -63,6 +63,7 @@ class NinjaMailerJob implements ShouldQueue { $this->nmo = $nmo; + $this->override = $override; } diff --git a/app/Jobs/Util/Import.php b/app/Jobs/Util/Import.php index 20b2645ef9..4bf2fa0c3e 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -210,7 +210,7 @@ class Import implements ShouldQueue $this->{$method}($data[$import]); } - if(Ninja::isHosted()) + if(Ninja::isHosted() && array_key_exists('ninja_tokens', $data)) $this->processNinjaTokens($data['ninja_tokens']); $this->setInitialCompanyLedgerBalances();