Fixed problem creating a new payment gateway
This commit is contained in:
parent
6f097c34c2
commit
fdde60577c
2 changed files with 2 additions and 8 deletions
|
|
@ -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…
Add table
Reference in a new issue