From 425bf3a18277caa34075964ff338ddedaca3a386 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Mon, 17 Dec 2012 22:16:31 +1100 Subject: [PATCH] Fixing document attachment sending --- .gitignore | 1 + controllers/documents_controller.php | 4 ++-- webroot/js/document_add_edit.js | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 19086adc..05669b41 100755 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ vaultmsgs/* cake_eclipse_helper.php config/* webroot/pdf/* +webroot/attachments_files/* diff --git a/controllers/documents_controller.php b/controllers/documents_controller.php index 2ae47f7b..f5b64d6c 100755 --- a/controllers/documents_controller.php +++ b/controllers/documents_controller.php @@ -663,7 +663,7 @@ class DocumentsController extends AppController { //Uncomment this when going live $this->Email->cc = array($enquiry['User']['email']); - // $this->Email->bcc = array('carpis@cmctechnologies.com.au'); + $this->Email->bcc = array('carpis@cmctechnologies.com.au'); $this->Email->subject = $enquiry['Enquiry']['title'].' '; $this->Email->replyTo = $enquiry['User']['email']; @@ -680,7 +680,7 @@ class DocumentsController extends AppController { else { $this->set('smtp_errors', $this->Email->smtpError); $this->Session->setFlash(__('The Email has NOT been sent. Something went wrong.', true)); - // $this->redirect(array('action'=>'view/'.$id), null, false); + $this->redirect(array('action'=>'view/'.$id), null, false); } diff --git a/webroot/js/document_add_edit.js b/webroot/js/document_add_edit.js index 14250b29..c07fba4c 100755 --- a/webroot/js/document_add_edit.js +++ b/webroot/js/document_add_edit.js @@ -14,7 +14,6 @@ $(function() { var docID = $('#documentID').html(); - $("#flashMessage").hide(); $("#lineItemDetails").hide();