mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Merge pull request #6974 from turbo124/v5-develop
Handle no entity sent
This commit is contained in:
commit
9c1e441136
@ -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