diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.php index 9c6dc0d64f..a7794e2478 100755 --- a/app/Http/Controllers/AssetsController.php +++ b/app/Http/Controllers/AssetsController.php @@ -1131,7 +1131,13 @@ class AssetsController extends Controller } if ($request->has('rtd_location_id')) { $update_array['rtd_location_id'] = $request->input('rtd_location_id'); + if (($request->has('update_real_loc')) + && (($request->input('update_real_loc')) == '1')) + { + $update_array['location_id'] = $request->input('location_id'); + } } + if ($request->has('status_id')) { $update_array['status_id'] = $request->input('status_id'); } diff --git a/resources/views/hardware/bulk.blade.php b/resources/views/hardware/bulk.blade.php index ff0c4cb8c6..8207e95715 100755 --- a/resources/views/hardware/bulk.blade.php +++ b/resources/views/hardware/bulk.blade.php @@ -54,8 +54,25 @@ @include ('partials.forms.edit.location-select', ['translated_name' => trans('admin/hardware/form.default_location'), 'fieldname' => 'rtd_location_id']) + +