Merge pull request #10605 from inietov/fixes/column_activated_cannot_be_null_develop

Fixes: Column activated cannot be null for develop [sc-18528]
This commit is contained in:
snipe 2022-02-02 12:16:39 -08:00 committed by GitHub
commit c0cc90066f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>