From d4e25bbc2a21f7ca4adf9bad5e8a5bec243cd1d8 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 8 Aug 2016 21:21:54 +0300 Subject: [PATCH] Fix for online payments page --- app/Http/Controllers/AccountController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 34890a48e1..67217eada2 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -439,7 +439,7 @@ class AccountController extends BaseController $account = Auth::user()->account; $account->load('account_gateways'); $count = count($account->account_gateways); - $trashedCount = AccountGateway::scope($account->id)->withTrashed()->count(); + $trashedCount = AccountGateway::scope()->withTrashed()->count(); if ($accountGateway = $account->getGatewayConfig(GATEWAY_STRIPE)) { if (! $accountGateway->getPublishableStripeKey()) {