From a3c03039b70ed53928c71c8a92295252b8902cc0 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 13 Mar 2023 14:36:57 +1100 Subject: [PATCH] Additional defaults for primary colors --- app/Services/Pdf/PdfMock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/Pdf/PdfMock.php b/app/Services/Pdf/PdfMock.php index f1b18faa1273..da99a8a99cdb 100644 --- a/app/Services/Pdf/PdfMock.php +++ b/app/Services/Pdf/PdfMock.php @@ -271,7 +271,7 @@ class PdfMock '$task.line_total' => '', '$line_tax_labels' => '', '$line_tax_values' => '', - '$secondary_color' => $this->settings->secondary_color, + '$secondary_color' => isset($this->settings->secondary_color) ? $this->settings->secondary_color : '#3d3d3d;', '$invoice.balance' => '$0.00', '$invoice.custom1' => 'custom value', '$invoice.custom2' => 'custom value', @@ -325,7 +325,7 @@ class PdfMock '$entity_images' => '', '$task.discount' => '', '$contact.email' => 'bob@gmail.com', - '$primary_color' => $this->settings->primary_color, + '$primary_color' => isset($this->settings->primary_color) ? $this->settings->primary_color : '#4e4e4e', '$credit_amount' => '$0.00', '$invoice.total' => '$0.00', '$invoice.taxes' => '$0.00',