mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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;
|
$entity_design_id = 2;
|
||||||
|
|
||||||
$design = Design::find($entity_design_id);
|
$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);
|
$html = new HtmlEngine($this->invitation);
|
||||||
|
|
||||||
if ($design->is_custom) {
|
if ($design->is_custom) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user