mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Remove assigned_to constraint
This commit is contained in:
parent
1448229cd2
commit
19670f9dd8
|
@ -1092,7 +1092,7 @@ class Asset extends Depreciable
|
||||||
return $query->where(function ($query) use ($search) {
|
return $query->where(function ($query) use ($search) {
|
||||||
$query->whereHas('defaultLoc', function ($query) use ($search) {
|
$query->whereHas('defaultLoc', function ($query) use ($search) {
|
||||||
$query->where('locations.id', '=', $search);
|
$query->where('locations.id', '=', $search);
|
||||||
})->whereNull('assigned_to');
|
});
|
||||||
})->orWhere(function ($query) use ($search) {
|
})->orWhere(function ($query) use ($search) {
|
||||||
$query->whereHas('assigneduser', function ($query) use ($search) {
|
$query->whereHas('assigneduser', function ($query) use ($search) {
|
||||||
$query->whereHas('userloc', function ($query) use ($search) {
|
$query->whereHas('userloc', function ($query) use ($search) {
|
||||||
|
|
Loading…
Reference in a new issue