mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
All tests now pass.
This commit is contained in:
parent
88d214ea88
commit
eccaaa7f91
|
@ -375,9 +375,10 @@ class BulkUsersController extends Controller
|
|||
|
||||
private function logConsumablesCheckin(Collection $consumableUserRows): void
|
||||
{
|
||||
\Log::error("Logging Consumables Checkin!");
|
||||
foreach ($consumableUserRows as $consumableUserRow) {
|
||||
$consumable = Consumable::find($consumableUserRow->consumable_id);
|
||||
$consumable->setTarget(auth()->user());
|
||||
$consumable->setTarget(User::find($consumableUserRow->assigned_to));
|
||||
$consumable->setNote('Bulk checkin items');
|
||||
$consumable->logWithoutSave(ActionType::CheckinFrom);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue