diff --git a/app/controllers/admin/AssetsController.php b/app/controllers/admin/AssetsController.php index 581ed3fd5112..2ebc6616fd17 100644 --- a/app/controllers/admin/AssetsController.php +++ b/app/controllers/admin/AssetsController.php @@ -329,6 +329,7 @@ public function postCheckout($assetId) $logaction = new Actionlog(); $logaction->asset_id = $asset->id; $logaction->checkedout_to = $asset->assigned_to; + $logaction->asset_type = 'hardware'; $logaction->location_id = $assigned_to->location_id; $logaction->user_id = Sentry::getUser()->id; $log = $logaction->logaction('checkout'); @@ -375,6 +376,7 @@ public function postCheckin($assetId) $logaction->asset_id = $asset->id; $logaction->location_id = NULL; + $logaction->asset_type = 'hardware'; $logaction->user_id = Sentry::getUser()->id; $log = $logaction->logaction('checkin from');