Fixing document attachment sending
This commit is contained in:
parent
aea3b030aa
commit
425bf3a182
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -17,3 +17,4 @@ vaultmsgs/*
|
||||||
cake_eclipse_helper.php
|
cake_eclipse_helper.php
|
||||||
config/*
|
config/*
|
||||||
webroot/pdf/*
|
webroot/pdf/*
|
||||||
|
webroot/attachments_files/*
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ $(function() {
|
||||||
var docID = $('#documentID').html();
|
var docID = $('#documentID').html();
|
||||||
|
|
||||||
|
|
||||||
$("#flashMessage").hide();
|
|
||||||
|
|
||||||
$("#lineItemDetails").hide();
|
$("#lineItemDetails").hide();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue