Use name if provided by asset checkout request

This commit is contained in:
Marcus Moore 2023-02-14 12:08:20 -08:00 committed by snipe
parent 9c25dd4eb6
commit b946a6066d

View file

@ -857,7 +857,7 @@ class AssetsController extends Controller
$checkout_at = request('checkout_at', date('Y-m-d H:i:s'));
$expected_checkin = request('expected_checkin', null);
$note = request('note', null);
$asset_name = request('name', null);
$asset_name = request()->has('name') ? request('name') : $asset->name;
// Set the location ID to the RTD location id if there is one
// Wait, why are we doing this? This overrides the stuff we set further up, which makes no sense.