mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Merge branch 'master' of https://github.com/hillelcoren/invoice-ninja
This commit is contained in:
commit
9198677277
@ -22,7 +22,7 @@ class Mailer
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(isset($data['invoice_id'])) {
|
if(isset($data['invoice_id'])) {
|
||||||
$invoice = Invoice::scope($data['invoice_id'])->with(['account'])->first();
|
$invoice = Invoice::scope()->with("account")->where('id', '=', $data['invoice_id'])->get()->first();
|
||||||
$pdfPath = storage_path().'/pdfcache/cache-'.$invoice->id.'.pdf';
|
$pdfPath = storage_path().'/pdfcache/cache-'.$invoice->id.'.pdf';
|
||||||
if($invoice->account->pdf_email_attachment && file_exists($pdfPath)) {
|
if($invoice->account->pdf_email_attachment && file_exists($pdfPath)) {
|
||||||
$message->attach(
|
$message->attach(
|
||||||
|
Loading…
Reference in New Issue
Block a user