Skip to content

Commit

Permalink
Fixed snipe#4988 - incorrect variable name in asset checkout API method
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Feb 13, 2018
1 parent b294635 commit f144d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/AssetsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ public function checkout(AssetCheckoutRequest $request, $asset_id)
$error_payload['target_type'] = 'location';

} elseif (request('checkout_to_type')=='asset') {
$target = Asset::where('id','!=',$assetId)->find(request('assigned_asset'));
$target = Asset::where('id','!=',$asset_id)->find(request('assigned_asset'));
$asset->location_id = $target->rtd_location_id;
// Override with the asset's location_id if it has one
if ($target->location_id!='') {
Expand Down

0 comments on commit f144d67

Please sign in to comment.