diff --git a/app/Http/Controllers/Assets/AssetsController.php b/app/Http/Controllers/Assets/AssetsController.php index f6f72ebbc7..dceaa9b08a 100755 --- a/app/Http/Controllers/Assets/AssetsController.php +++ b/app/Http/Controllers/Assets/AssetsController.php @@ -329,9 +329,7 @@ class AssetsController extends Controller } $asset->supplier_id = $request->input('supplier_id', null); $asset->expected_checkin = $request->input('expected_checkin', null); - - // If the box isn't checked, it's not in the request at all. - $asset->requestable = $request->filled('requestable', 0); + $asset->requestable = $request->input('requestable', 0); $asset->rtd_location_id = $request->input('rtd_location_id', null); $asset->byod = $request->input('byod', 0); diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.php index 42144fc20c..c8b2eec8d1 100755 --- a/resources/views/hardware/view.blade.php +++ b/resources/views/hardware/view.blade.php @@ -657,6 +657,16 @@ + +
+
+ {{ trans('admin/hardware/general.requestable') }} +
+
+ {!! ($asset->requestable=='1') ? ' '.trans('general.yes') : ' '.trans('general.no') !!} +
+
+ @if (($asset->model) && ($asset->model->fieldset)) @foreach($asset->model->fieldset->fields as $field)