A free open source IT asset/license management system
Set rtd_location if a location is given at checkin
Ivan Nieto Vivanco011726154c7d
diff --git a/app/Http/Controllers/Assets/AssetCheckinController.php b/app/Http/Controllers/Assets/AssetCheckinController.phpindex 657b02171b..fa4fd52e7b 100644--- a/app/Http/Controllers/Assets/AssetCheckinController.php+++ b/app/Http/Controllers/Assets/AssetCheckinController.php@@ -94,14 +94,15 @@ class AssetCheckinController extends Controller\Log::debug('Manually override the location IDs');\Log::debug('Original Location ID: '.$asset->location_id);$asset->location_id = '';- \Log::debug('New RTD Location ID: '.$asset->location_id);+ \Log::debug('New Location ID: '.$asset->location_id);}$asset->location_id = $asset->rtd_location_id;if ($request->filled('location_id')) {\Log::debug('NEW Location ID: '.$request->get('location_id'));- $asset->location_id = e($request->get('location_id'));+ $asset->location_id = $request->get('location_id');+ $asset->rtd_location_id = $request->get('location_id');}$checkin_at = date('Y-m-d H:i:s');