mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed problem creating a new payment gateway
This commit is contained in:
parent
6f097c34c2
commit
fdde60577c
@ -146,12 +146,6 @@ class ExpenseController extends BaseController
|
||||
|
||||
$data = array_merge($data, self::getViewModel());
|
||||
|
||||
if (Auth::user()->account->isNinjaAccount()) {
|
||||
if ($account = Account::whereId($client->public_id)->first()) {
|
||||
$data['proPlanPaid'] = $account['pro_plan_paid'];
|
||||
}
|
||||
}
|
||||
|
||||
return View::make('expenses.edit', $data);
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
@include('accounts.nav', ['selected' => ACCOUNT_PAYMENTS])
|
||||
|
||||
{!! Former::open($url)->method($method)->rule()->addClass('warn-on-exit') !!}
|
||||
{!! Former::populate($account) !!}
|
||||
{!! Former::populateField('token_billing_type_id', $account->token_billing_type_id) !!}
|
||||
|
||||
|
||||
<div class="panel panel-default">
|
||||
@ -63,7 +63,7 @@
|
||||
|
||||
@foreach ($gateway->fields as $field => $details)
|
||||
|
||||
@if ($details && !$accountGateway)
|
||||
@if ($details && !$accountGateway && !is_array($details))
|
||||
{!! Former::populateField($gateway->id.'_'.$field, $details) !!}
|
||||
@endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user