1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Country chooser for vendors and stripe payment doesn't use translated strings #1225

This commit is contained in:
Hillel Coren 2017-04-18 10:10:15 +03:00
parent e785ebab5e
commit 43b703430e
3 changed files with 3 additions and 2 deletions

View File

@ -152,7 +152,6 @@ class VendorController extends BaseController
'data' => Input::old('data'),
'account' => Auth::user()->account,
'currencies' => Cache::get('currencies'),
'countries' => Cache::get('countries'),
];
}

View File

@ -17,9 +17,11 @@ class ComposerServiceProvider extends ServiceProvider
[
'accounts.details',
'clients.edit',
'vendors.edit',
'payments.edit',
'invoices.edit',
'accounts.localization',
'payments.credit_card',
],
'App\Http\ViewComposers\TranslationComposer'
);

View File

@ -193,7 +193,7 @@
<div class="col-md-6">
{!! Former::select('country_id')
->placeholder(trans('texts.country_id'))
->fromQuery(Cache::get('countries'), 'name', 'id')
->fromQuery($countries, 'name', 'id')
->addGroupClass('country-select')
->label('') !!}
</div>