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();
}
}