1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Catch all for designs

This commit is contained in:
David Bomba 2021-06-24 06:55:33 +10:00
parent 7e6e1d3de0
commit bc427c97cf

View File

@ -136,6 +136,11 @@ class CreateEntityPdf implements ShouldQueue
$entity_design_id = 2;
$design = Design::find($entity_design_id);
/* Catch all in case migration doesn't pass back a valid design */
if(!$design)
$design = Design::find(2);
$html = new HtmlEngine($this->invitation);
if ($design->is_custom) {