-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup changes #4813
Setup changes #4813
Conversation
$settings->site_name = e(Input::get('site_name')); | ||
$settings->alert_email = e(Input::get('email')); | ||
$settings->alerts_enabled = 1; | ||
$settings->pwd_secure_min = 10; | ||
$settings->brand = 1; | ||
$settings->locale = 'en'; | ||
$settings->default_currency = 'USD'; | ||
$settings->locale = e(Input::get('locale')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to set a default for locale
(en
)) and full_multiple_companies_support,
here, or make those fields required via FormRequest.
Also, since we use prepared statements, we don't need the e()
around everything. That's something I was meaning to go back in and fix at some point.
We should also probably switch to the request()
or $request->input()
methods instead of the older Input::()
facade.
resources/views/setup/user.blade.php
Outdated
|
||
<!-- Language --> | ||
<div class="form-group col-lg-6 {{$errors->has('default_language') ? 'error' : ''}}"> | ||
{{ Form::label('site_name', trans('admin/settings/general.default_language')) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I think the label name is wrong here?
{{ Form::label('site_name', trans('admin/settings/general.default_language')) }}
should be
{{ Form::label('locale', trans('admin/settings/general.default_language')) }}
Added default value for language to 'en' and multiple companies support to 0 (false) Switched out the old Input facade to the preferred $request->input method for the setup page.
For feature request #4812.
I can work on moving the settings into separate steps for readability in another pull.