A free open source IT asset/license management system
Add a casting to a truthy/falsy that needs to be integer
Ivan Nieto Vivancofa2f8409f9b2
diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.phpindex c34ca2592a..a2a5ebef0d 100755--- a/resources/views/users/edit.blade.php+++ b/resources/views/users/edit.blade.php@@ -199,7 +199,7 @@<div class="icheckbox disabled" style="padding-left: 10px;"><input type="checkbox" value="1" name="activated" class="minimal disabled" {{ (old('activated', $user->activated)) == '1' ? ' checked="checked"' : '' }} disabled="disabled" aria-label="activated"><!-- this is necessary because the field is disabled and will reset -->- <input type="hidden" name="activated" value="{{ $user->activated }}">+ <input type="hidden" name="activated" value="{{ (int)$user->activated }}">{{ trans('admin/users/general.activated_help_text') }}<p class="help-block">{{ trans('general.feature_disabled') }}</p>