From c4c86a240dc524f0420c96998855751e40ce3d4d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 12 Nov 2023 22:05:33 +1100 Subject: [PATCH] Null coalesce for designs --- app/Services/Pdf/PdfConfiguration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Pdf/PdfConfiguration.php b/app/Services/Pdf/PdfConfiguration.php index febe6d7d3ffe..9ab8751bb870 100644 --- a/app/Services/Pdf/PdfConfiguration.php +++ b/app/Services/Pdf/PdfConfiguration.php @@ -273,7 +273,7 @@ class PdfConfiguration { $design_id = $this->entity->design_id ? : $this->decodePrimaryKey($this->settings_object->getSetting($this->entity_design_id)); - $this->design = Design::withTrashed()->find($design_id ?: 2); + $this->design = Design::withTrashed()->find($design_id ?? 2); return $this; }