Adds status ID to asset checkout API endpoint

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-04-15 13:06:35 +01:00
parent e4ef970934
commit 6b1329133b

View file

@ -788,6 +788,9 @@ class AssetsController extends Controller
$error_payload['target_type'] = 'user';
}
if ($request->filled('status_id')) {
$asset->status_id = $request->get('status_id');
}
if (!isset($target)) {