1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-22 17:31:35 +02:00

Fix for online payments page

This commit is contained in:
Hillel Coren 2016-08-08 21:21:54 +03:00
parent 030a4ec356
commit d4e25bbc2a

View File

@ -439,7 +439,7 @@ class AccountController extends BaseController
$account = Auth::user()->account; $account = Auth::user()->account;
$account->load('account_gateways'); $account->load('account_gateways');
$count = count($account->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 = $account->getGatewayConfig(GATEWAY_STRIPE)) {
if (! $accountGateway->getPublishableStripeKey()) { if (! $accountGateway->getPublishableStripeKey()) {