mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for Zapier search failure
This commit is contained in:
parent
546e1b56dc
commit
72c0365aee
@ -17,7 +17,11 @@ class InvoiceRequest extends EntityRequest
|
|||||||
$invoice = Invoice::scope()
|
$invoice = Invoice::scope()
|
||||||
->whereInvoiceNumber($this->invoice_number)
|
->whereInvoiceNumber($this->invoice_number)
|
||||||
->withTrashed()
|
->withTrashed()
|
||||||
->firstOrFail();
|
->first();
|
||||||
|
|
||||||
|
if (! $invoice) {
|
||||||
|
abort(404);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// eager load the invoice items
|
// eager load the invoice items
|
||||||
|
Loading…
x
Reference in New Issue
Block a user