From 96014fd81597d8001a0a1736856d21d2a5bc9e99 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sat, 26 Jun 2021 12:38:56 +1000 Subject: [PATCH] minor fixes for migration emails --- app/Mail/MigrationCompleted.php | 2 +- resources/views/email/import/completed.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Mail/MigrationCompleted.php b/app/Mail/MigrationCompleted.php index b7d979f906a4..31c1bf10a144 100644 --- a/app/Mail/MigrationCompleted.php +++ b/app/Mail/MigrationCompleted.php @@ -36,7 +36,7 @@ class MigrationCompleted extends Mailable $data['settings'] = $this->company->settings; $data['company'] = $this->company->fresh(); $data['whitelabel'] = $this->company->account->isPaid() ? true : false; - $data['check_data'] = $this->check_data; + $data['check_data'] = $this->check_data ?: ''; $data['logo'] = $this->company->present()->logo(); $result = $this->from(config('mail.from.address'), config('mail.from.name')) diff --git a/resources/views/email/import/completed.blade.php b/resources/views/email/import/completed.blade.php index e7b910cf486c..acefb2c17802 100644 --- a/resources/views/email/import/completed.blade.php +++ b/resources/views/email/import/completed.blade.php @@ -67,7 +67,7 @@

{{ ctrans('texts.documents') }}: {{ count($company->documents) }}

@endif - @if($check_data) + @if(isset($check_data))

Data Quality:

{!! $check_data !!}

@endif