Complete a scenario

This commit is contained in:
Marcus Moore
2024-05-22 13:23:49 -07:00
parent 5d368990dc
commit 8ca882d1c8
2 changed files with 1 additions and 2 deletions
@@ -829,7 +829,6 @@ class AssetsController extends Controller
$error_payload['target_type'] = 'location';
} elseif (request('checkout_to_type') == 'asset') {
// @todo: test this code path
$target = Asset::where('id', '!=', $asset_id)->find(request('assigned_asset'));
// Override with the asset's location_id if it has one
$asset->location_id = (($target) && (isset($target->location_id))) ? $target->location_id : '';