mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 17:37:31 -04:00 
			
		
		
		
	Merge pull request #6066 from turbo124/v5-develop
Fixes for broken invoice pdf links
This commit is contained in:
		
						commit
						bd3b80bc4e
					
				| @ -793,7 +793,8 @@ class InvoiceController extends BaseController | |||||||
|         $contact = $invitation->contact; |         $contact = $invitation->contact; | ||||||
|         $invoice = $invitation->invoice; |         $invoice = $invitation->invoice; | ||||||
| 
 | 
 | ||||||
|         $file = $invoice->pdf_file_path($invitation); |         $file = $invoice->service()->getInvoicePdf($contact); | ||||||
|  | 
 | ||||||
|             return response()->download($file, basename($file), ['Cache-Control:' => 'no-cache'])->deleteFileAfterSend(true); |             return response()->download($file, basename($file), ['Cache-Control:' => 'no-cache'])->deleteFileAfterSend(true); | ||||||
| 
 | 
 | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user