Skip to content

A free open source IT asset/license management system

removes data dump

Godfrey M8a0517fb5d83
diff --git a/app/Console/Commands/CheckoutLicenseToAllUsers.php b/app/Console/Commands/CheckoutLicenseToAllUsers.php
index 003c32c738..44ec72e13c 100644
--- a/app/Console/Commands/CheckoutLicenseToAllUsers.php
+++ b/app/Console/Commands/CheckoutLicenseToAllUsers.php
@@ -57,7 +57,7 @@ class CheckoutLicenseToAllUsers extends Command
}
$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/views/users/edit.blade.php b/resources/views/users/edit.blade.php
index f0bbc989f6..7126428607 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="1" name="should_autoassign" class="minimal" {{ (old('should_autoassign', $user->should_autoassign)) }} aria-label="should_autoassign">
+ <input type="checkbox" value="1" name="should_autoassign" class="minimal" {{ (old('should_autoassign', $user->should_autoassign)) == '1' ? ' checked="checked"' : '' }} aria-label="should_autoassign">
{{ trans('admin/users/general.auto_assign_label') }}
</label>