mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Null coalesce for designs
This commit is contained in:
parent
fcaa859ee5
commit
c4c86a240d
@ -273,7 +273,7 @@ class PdfConfiguration
|
|||||||
{
|
{
|
||||||
$design_id = $this->entity->design_id ? : $this->decodePrimaryKey($this->settings_object->getSetting($this->entity_design_id));
|
$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;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user