1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Merge pull request #631 from turbo124/master

Include all invoices (including trashed) in GET invoices API Call
This commit is contained in:
David Bomba 2016-01-16 09:23:54 +11:00
commit 05ac060f1c

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')) {