diff --git a/app/controllers/InvoiceController.php b/app/controllers/InvoiceController.php index dabbb0c00c10..28a04b3cbaf9 100755 --- a/app/controllers/InvoiceController.php +++ b/app/controllers/InvoiceController.php @@ -185,7 +185,7 @@ class InvoiceController extends \BaseController 'invoiceLabels' => $client->account->getInvoiceLabels(), 'contact' => $contact, 'hasToken' => $client->getGatewayToken(), - 'countGateways' => AccountGateway::scope()->count(), + 'countGateways' => AccountGateway::scope(false, $client->account->id)->count(), ); return View::make('invoices.view', $data);