country field value changed to company.country

This commit is contained in:
Cihan Şentürk 2021-09-20 09:56:33 +03:00
parent eeb26abf16
commit c08db42e93
7 changed files with 4 additions and 11 deletions

View File

@ -97,10 +97,6 @@ class Companies extends Controller
}
setting()->set($real_key, $value);
if ($key == 'country') {
setting()->set('default.' . $key, $value);
}
}
// Save all settings

View File

@ -89,7 +89,6 @@ class CreateCompany extends Job implements HasOwner, HasSource, ShouldCreate
'company.country' => $this->request->get('country'),
'default.currency' => $this->request->get('currency'),
'default.locale' => $this->request->get('locale', 'en-GB'),
'default.country' => $this->request->get('country'),
]);
if (!empty($this->request->settings)) {

View File

@ -18,7 +18,7 @@
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('default.country'), []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), []) }}
{{ Form::hidden('type', 'customer') }}
{!! Form::hidden('enabled', '1', []) !!}

View File

@ -18,7 +18,7 @@
{{ Form::textareaGroup('address', trans('general.address')) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('default.country'), []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), []) }}
{{ Form::hidden('type', 'vendor') }}
{!! Form::hidden('enabled', '1', []) !!}

View File

@ -37,7 +37,7 @@
{{ Form::textGroup('state', trans('general.state'), 'city', []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('default.country'), []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), []) }}
{{ Form::fileGroup('logo', trans_choice('general.pictures', 1), '', ['dropzone-class' => 'form-file']) }}

View File

@ -38,7 +38,7 @@
{{ Form::textGroup('state', trans('general.state'), 'city', []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('default.country'), []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('company.country'), []) }}
{{ Form::textGroup('reference', trans('general.reference'), 'file', []) }}

View File

@ -32,8 +32,6 @@
{{ Form::selectGroup('locale', trans_choice('general.languages', 1), 'flag', language()->allowed(), setting('default.locale'), []) }}
{{ Form::selectGroup('country', trans_choice('general.countries', 1), 'globe-americas', trans('countries'), setting('default.country'), []) }}
{{ Form::selectGroup('list_limit', trans('settings.default.list_limit'), 'columns', ['10' => '10', '25' => '25', '50' => '50', '100' => '100'], setting('default.list_limit'), []) }}
{{ Form::radioGroup('use_gravatar', trans('settings.default.use_gravatar'), setting('default.use_gravatar')) }}