diff --git a/Layout/default/Emailtemplates/attachments/cancel_notification.pdf.php b/Layout/default/Emailtemplates/attachments/cancel_notification.pdf.php
index e8a13fe43..36f8519d1 100644
--- a/Layout/default/Emailtemplates/attachments/cancel_notification.pdf.php
+++ b/Layout/default/Emailtemplates/attachments/cancel_notification.pdf.php
@@ -15,9 +15,9 @@ $this->setReturnValue([
@@ -28,11 +28,11 @@ $this->setReturnValue([
-

+
-
+
diff --git a/application/Contract/Contract.php b/application/Contract/Contract.php
index 235e2382e..0f83b28d6 100644
--- a/application/Contract/Contract.php
+++ b/application/Contract/Contract.php
@@ -238,8 +238,8 @@ class Contract extends mfBaseModel {
"owner" => $this->getProperty("owner")
];
$pdf = new PdfForm("Emailtemplates/attachments/cancel_notification.pdf", $pdf_vars);
- //$pdf->download();
- //exit;
+ $pdf->download();
+ exit;
$pdfpath = $pdf->render();
$tvalue = $pdf->getReturnedValues();
$pdfname = $tvalue["filename"];
diff --git a/application/Contract/ContractController.php b/application/Contract/ContractController.php
index 359043f38..bfcd0f25e 100644
--- a/application/Contract/ContractController.php
+++ b/application/Contract/ContractController.php
@@ -231,7 +231,7 @@ class ContractController extends mfBaseController
}
- /*protected function sendCancelNotification() {
+ protected function sendCancelNotification() {
$contract_id = $this->request->contract_id;
$contract = new Contract($contract_id);
@@ -252,7 +252,7 @@ class ContractController extends mfBaseController
$this->redirect("Contract", "view", ["contract_id" => $contract_id]);
- }*/
+ }
protected function productchangeAction()
{