Catch all for designs
This commit is contained in:
parent
7e6e1d3de0
commit
bc427c97cf
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue