A free open source IT asset/license management system
Moved user email nulling until after the save
snipe134e8e6fb995
diff --git a/app/Console/Commands/CheckinLicensesFromAllUsers.php b/app/Console/Commands/CheckinLicensesFromAllUsers.phpindex a4e7477817..bcd8583eaf 100644--- a/app/Console/Commands/CheckinLicensesFromAllUsers.php+++ b/app/Console/Commands/CheckinLicensesFromAllUsers.php@@ -72,14 +72,15 @@ class CheckinLicensesFromAllUsers extends Commandforeach ($licenseSeats as $seat) {$this->info($seat->user->username .' has a license seat for '.$license->name);-- if (!$notify) {- $seat->user->email = null;- }-$seat->assigned_to = null;if ($seat->save()) {++ // Override the email address so we don't notify on checkin+ if (!$notify) {+ $seat->user->email = null;+ }+// Log the checkin$seat->logCheckin($seat->user, 'Checked in via cli tool');}