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:
parent
7e6e1d3de0
commit
bc427c97cf
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user