mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for tests
This commit is contained in:
parent
e71d254a09
commit
fbb5a8bbc8
@ -128,7 +128,7 @@ class ActivityListener
|
|||||||
public function updatedInvoice(InvoiceWasUpdated $event)
|
public function updatedInvoice(InvoiceWasUpdated $event)
|
||||||
{
|
{
|
||||||
$backupInvoice = Invoice::with('invoice_items', 'client.account', 'client.contacts')
|
$backupInvoice = Invoice::with('invoice_items', 'client.account', 'client.contacts')
|
||||||
->withArchived()
|
->withTrashed()
|
||||||
->find($event->invoice->id);
|
->find($event->invoice->id);
|
||||||
|
|
||||||
$activity = $this->activityRepo->create(
|
$activity = $this->activityRepo->create(
|
||||||
@ -234,7 +234,9 @@ class ActivityListener
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$backupQuote = Invoice::with('invoice_items', 'client.account', 'client.contacts')->find($event->quote->id);
|
$backupQuote = Invoice::with('invoice_items', 'client.account', 'client.contacts')
|
||||||
|
->withTrashed()
|
||||||
|
->find($event->quote->id);
|
||||||
|
|
||||||
$activity = $this->activityRepo->create(
|
$activity = $this->activityRepo->create(
|
||||||
$event->quote,
|
$event->quote,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user