Fixing document attachment sending

This commit is contained in:
Karl Cordes 2012-12-17 22:16:31 +11:00
parent aea3b030aa
commit 425bf3a182
3 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View file

@ -17,3 +17,4 @@ vaultmsgs/*
cake_eclipse_helper.php cake_eclipse_helper.php
config/* config/*
webroot/pdf/* webroot/pdf/*
webroot/attachments_files/*

View file

@ -663,7 +663,7 @@ class DocumentsController extends AppController {
//Uncomment this when going live //Uncomment this when going live
$this->Email->cc = array($enquiry['User']['email']); $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->subject = $enquiry['Enquiry']['title'].' ';
$this->Email->replyTo = $enquiry['User']['email']; $this->Email->replyTo = $enquiry['User']['email'];
@ -680,7 +680,7 @@ class DocumentsController extends AppController {
else { else {
$this->set('smtp_errors', $this->Email->smtpError); $this->set('smtp_errors', $this->Email->smtpError);
$this->Session->setFlash(__('The Email has NOT been sent. Something went wrong.', true)); $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);
} }

View file

@ -14,7 +14,6 @@ $(function() {
var docID = $('#documentID').html(); var docID = $('#documentID').html();
$("#flashMessage").hide();
$("#lineItemDetails").hide(); $("#lineItemDetails").hide();