Skip to content
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

Merged
merged 6 commits into from
Jan 17, 2018
Merged

Setup changes #4813

merged 6 commits into from
Jan 17, 2018

Conversation

fordster78
Copy link
Contributor

For feature request #4812.

I can work on moving the settings into separate steps for readability in another pull.

$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'));
Copy link
Owner

@snipe snipe Jan 17, 2018

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.


<!-- Language -->
<div class="form-group col-lg-6 {{$errors->has('default_language') ? 'error' : ''}}">
{{ Form::label('site_name', trans('admin/settings/general.default_language')) }}
Copy link
Owner

@snipe snipe Jan 17, 2018

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.
@snipe snipe merged commit 138313d into snipe:develop Jan 17, 2018
@snipe
Copy link
Owner

snipe commented Jan 17, 2018

Nice work, thanks!

tip-hat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants