diff --git a/app/Http/Controllers/AssetsController.php b/app/Http/Controllers/AssetsController.php index d79c37e3ff..9200b6c81f 100755 --- a/app/Http/Controllers/AssetsController.php +++ b/app/Http/Controllers/AssetsController.php @@ -352,16 +352,13 @@ class AssetsController extends Controller $asset->supplier_id = null; } - if ($request->has('requestable')) { - $asset->requestable = e($request->input('requestable')); - } else { - $asset->requestable = null; - } + // If the box isn't checked, it's not in the request at all. + $asset->requestable = $request->has('requestable'); if ($request->has('rtd_location_id')) { $asset->rtd_location_id = e($request->input('rtd_location_id')); } else { - $asset->requestable = null; + $asset->rtd_location_id = null; } if ($request->has('image_delete')) {