Skip to content

Commit

Permalink
Fixes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 25, 2013
1 parent 74607c0 commit 2203789
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/admin/AssetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 2203789

Please sign in to comment.