Merge pull request #6974 from turbo124/v5-develop

Handle no entity sent
This commit is contained in:
David Bomba 2021-11-15 06:55:06 +11:00 committed by GitHub
commit 9c1e441136
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -257,7 +257,7 @@ class TemplateEngine
]);
if($this->entity == 'invoice')
if(!$this->entity || $this->entity == 'invoice')
{
$this->entity_obj = Invoice::factory()->create([
'user_id' => auth()->user()->id,