Remove assigned_to constraint

This commit is contained in:
snipe 2017-08-25 06:30:10 -07:00
parent 1448229cd2
commit 19670f9dd8

View file

@ -1092,7 +1092,7 @@ class Asset extends Depreciable
return $query->where(function ($query) use ($search) {
$query->whereHas('defaultLoc', function ($query) use ($search) {
$query->where('locations.id', '=', $search);
})->whereNull('assigned_to');
});
})->orWhere(function ($query) use ($search) {
$query->whereHas('assigneduser', function ($query) use ($search) {
$query->whereHas('userloc', function ($query) use ($search) {