mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Handle no entity sent
This commit is contained in:
parent
7b11de8242
commit
8be51a6acf
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user