1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

By default include trashed invoices

This commit is contained in:
David Bomba 2016-01-16 09:22:22 +11:00
parent 7b61c8a46d
commit 12d3444808

View File

@ -49,8 +49,8 @@ class InvoiceApiController extends BaseAPIController
*/
public function index()
{
$paginator = Invoice::scope();
$invoices = Invoice::scope()
$paginator = Invoice::scope()->withTrashed();
$invoices = Invoice::scope()->withTrashed()
->with(array_merge(['invoice_items'], $this->getIncluded()));
if ($clientPublicId = Input::get('client_id')) {