fixes variable name

This commit is contained in:
Godfrey M 2022-11-15 15:51:52 -08:00
parent 45636b8114
commit 90828e3a87
3 changed files with 4 additions and 4 deletions

View file

@ -56,8 +56,8 @@ class CheckoutLicenseToAllUsers extends Command
return false;
}
$users = User::whereNull('deleted_at')->where('should_autoassign', '==', 1)->with('licenses')->get();
$users = User::whereNull('deleted_at')->where('should_autoassign', '==', 0)->with('licenses')->get();
dd($users);
if ($users->count() > $license->getAvailSeatsCountAttribute()) {
$this->info('You do not have enough free seats to complete this task, so we will check out as many as we can. ');
}

View file

@ -19,7 +19,7 @@ return [
'print_assigned' => 'Print All Assigned',
'email_assigned' => 'Email List of All Assigned',
'user_notified' => 'User has been emailed a list of their currently assigned items.',
'auto_assign_label' => 'User should skipped during auto assignment commands',
'auto_assign_label' => 'User should be skipped during auto assignment commands',
'auto_assign_help' => 'Skip this user in auto assignment of licenses',
'software_user' => 'Software Checked out to :name',
'send_email_help' => 'You must provide an email address for this user to send them credentials. Emailing credentials can only be done on user creation. Passwords are stored in a one-way hash and cannot be retrieved once saved.',

View file

@ -380,7 +380,7 @@
<div class="form-group">
<div class="col-md-7 col-md-offset-3">
<label for="should_autoassign">
<input type="checkbox" value="0" name="should_autoassign" class="minimal" {{ (old('remote', $user->should_autoassign)) }} aria-label="should_autoassign">
<input type="checkbox" value="1" name="should_autoassign" class="minimal" {{ (old('should_autoassign', $user->should_autoassign)) }} aria-label="should_autoassign">
{{ trans('admin/users/general.auto_assign_label') }}
</label>