From bc427c97cf090663bf54f802d9aed2767765c323 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 24 Jun 2021 06:55:33 +1000 Subject: [PATCH] Catch all for designs --- app/Jobs/Entity/CreateEntityPdf.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Jobs/Entity/CreateEntityPdf.php b/app/Jobs/Entity/CreateEntityPdf.php index 90ed8079a247..e28c288fc457 100644 --- a/app/Jobs/Entity/CreateEntityPdf.php +++ b/app/Jobs/Entity/CreateEntityPdf.php @@ -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) {