1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-21 00:41:34 +02:00

Merge pull request #6407 from turbo124/v5-develop

Fixes for preview
This commit is contained in:
David Bomba 2021-08-05 23:00:27 +10:00 committed by GitHub
commit b8aa11ec85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,7 +270,6 @@ class PreviewController extends BaseController
DB::connection(config('database.default'))->rollBack();
if (request()->query('html') == 'true') {
DB::purge(config('database.default'));
return $maker->getCompiledHTML;
}
@ -279,8 +278,6 @@ class PreviewController extends BaseController
catch(\Exception $e){
DB::connection(config('database.default'))->rollBack();
DB::purge(config('database.default'));
return;
}
@ -304,7 +301,6 @@ class PreviewController extends BaseController
->batch();
}
DB::purge(config('database.default'));
$response = Response::make($file_path, 200);
$response->header('Content-Type', 'application/pdf');