From 18fbcf75f7f41e9eb6f927c4787b59f6e2230733 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 2 Sep 2024 13:34:29 +1000 Subject: [PATCH] Fixes for template --- app/DataMapper/EmailTemplateDefaults.php | 2 +- app/Models/Document.php | 4 ++++ app/Utils/Traits/SavesDocuments.php | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/DataMapper/EmailTemplateDefaults.php b/app/DataMapper/EmailTemplateDefaults.php index 0d34fcfe4897..24579e9fa244 100644 --- a/app/DataMapper/EmailTemplateDefaults.php +++ b/app/DataMapper/EmailTemplateDefaults.php @@ -140,7 +140,7 @@ class EmailTemplateDefaults public static function emailPaymentFailedTemplate() { - return '

$client

'.ctrans('texts.client_payment_failure_body', ['invoice' => '$number', 'amount' => '$amount']).'

$payment_error

$payment_button
'; + return '

$client

'.ctrans('texts.client_payment_failure_body', ['invoice' => '$number', 'amount' => '$amount']).'

$payment_error

$view_button
'; } public static function emailQuoteReminder1Subject() diff --git a/app/Models/Document.php b/app/Models/Document.php index 140c98cdf656..fa9ec12a9364 100644 --- a/app/Models/Document.php +++ b/app/Models/Document.php @@ -85,6 +85,10 @@ class Document extends BaseModel 'deleted_at' => 'timestamp', ]; + protected $touches = [ + 'documentable' + ]; + /** * @var array */ diff --git a/app/Utils/Traits/SavesDocuments.php b/app/Utils/Traits/SavesDocuments.php index c35aaa6bb833..a6d3da04f5e1 100644 --- a/app/Utils/Traits/SavesDocuments.php +++ b/app/Utils/Traits/SavesDocuments.php @@ -49,7 +49,7 @@ trait SavesDocuments ))->handle(); } - $entity->touch(); + // $entity->touch(); } public function saveDocument($document, $entity, $is_public = true) @@ -78,7 +78,7 @@ trait SavesDocuments $is_public ))->handle(); - $entity->touch(); + // $entity->touch(); } }