mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Construct & update entity
if invoices
is available in context
This commit is contained in:
parent
c6826d495a
commit
4cbdc8b521
@ -36,6 +36,11 @@ trait DesignHelpers
|
||||
$this->entity = $this->context['entity'];
|
||||
}
|
||||
|
||||
if (isset($this->context['invoices'])) {
|
||||
$this->invoices = $this->context['invoices'];
|
||||
$this->entity = $this->invoices->first();
|
||||
}
|
||||
|
||||
$this->document();
|
||||
|
||||
return $this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user