mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Add a casting to a truthy/falsy that needs to be integer
This commit is contained in:
parent
237bc22a5c
commit
fa2f8409f9
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue