set default country and some styling
This commit is contained in:
@@ -68,8 +68,6 @@ class Companies extends Controller
|
||||
$real_key = 'localisation.' . $key;
|
||||
break;
|
||||
case 'country':
|
||||
$countries = trans('countries');
|
||||
$value = array_search($value, $countries);
|
||||
$real_key = 'company.' . $key;
|
||||
break;
|
||||
default:
|
||||
@@ -99,6 +97,10 @@ class Companies extends Controller
|
||||
}
|
||||
|
||||
setting()->set($real_key, $value);
|
||||
|
||||
if ($key == 'country') {
|
||||
setting()->set('default.' . $key, $value);
|
||||
}
|
||||
}
|
||||
|
||||
// Save all settings
|
||||
|
||||
@@ -89,6 +89,7 @@ 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)) {
|
||||
|
||||
Reference in New Issue
Block a user