mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 08:34:39 -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([
|
$this->entity_obj = Invoice::factory()->create([
|
||||||
'user_id' => auth()->user()->id,
|
'user_id' => auth()->user()->id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user