A free open source IT asset/license management system
fixes variable name
Godfrey M90828e3a873f
diff --git a/app/Console/Commands/CheckoutLicenseToAllUsers.php b/app/Console/Commands/CheckoutLicenseToAllUsers.phpindex e29b8991b6..003c32c738 100644--- a/app/Console/Commands/CheckoutLicenseToAllUsers.php+++ b/app/Console/Commands/CheckoutLicenseToAllUsers.php@@ -56,8 +56,8 @@ class CheckoutLicenseToAllUsers extends Commandreturn 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. ');}diff --git a/resources/lang/en/admin/users/general.php b/resources/lang/en/admin/users/general.phpindex 2ae8709251..71f56c7a15 100644--- a/resources/lang/en/admin/users/general.php+++ b/resources/lang/en/admin/users/general.php@@ -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.',diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.phpindex a689ab8983..f0bbc989f6 100755--- a/resources/views/users/edit.blade.php+++ b/resources/views/users/edit.blade.php@@ -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>