Change ->has() to ->filled()

This commit is contained in:
snipe
2019-05-23 17:39:50 -07:00
parent 8db2470ac4
commit 2d036c64e9
29 changed files with 148 additions and 148 deletions
@@ -67,13 +67,13 @@ class AssetCheckinController extends Controller
$asset->accepted = null;
$asset->name = e($request->get('name'));
if ($request->has('status_id')) {
if ($request->filled('status_id')) {
$asset->status_id = e($request->get('status_id'));
}
$asset->location_id = $asset->rtd_location_id;
if ($request->has('location_id')) {
if ($request->filled('location_id')) {
$asset->location_id = e($request->get('location_id'));
}