We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfda272 commit 3bffbb2Copy full SHA for 3bffbb2
app/Http/Controllers/Users/BulkUsersController.php
@@ -352,9 +352,10 @@ private function logAccessoriesCheckin(Collection $accessoryUserRows): void
352
353
private function logConsumablesCheckin(Collection $consumableUserRows): void
354
{
355
+ \Log::error("Logging Consumables Checkin!");
356
foreach ($consumableUserRows as $consumableUserRow) {
357
$consumable = Consumable::find($consumableUserRow->consumable_id);
- $consumable->setTarget(auth()->user());
358
+ $consumable->setTarget(User::find($consumableUserRow->assigned_to));
359
$consumable->setNote('Bulk checkin items');
360
$consumable->logWithoutSave(ActionType::CheckinFrom);
361
}
0 commit comments