Allow updating asset default location when checking in asset via api
This commit is contained in:
@@ -890,6 +890,10 @@ class AssetsController extends Controller
|
||||
|
||||
if ($request->filled('location_id')) {
|
||||
$asset->location_id = $request->input('location_id');
|
||||
|
||||
if ($request->get('update_default_location') == 0){
|
||||
$asset->rtd_location_id = $request->get('location_id');
|
||||
}
|
||||
}
|
||||
|
||||
if ($request->has('status_id')) {
|
||||
|
||||
Reference in New Issue
Block a user