mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Updated field name
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
ba226d9ba3
commit
53330514ac
|
@ -1146,7 +1146,7 @@ class Asset extends Depreciable
|
|||
public function scopePending($query)
|
||||
{
|
||||
return $query->whereHas('assetstatus', function ($query) {
|
||||
$query->where('status_label', '=', 'deployable');
|
||||
$query->where('status_type', '=', 'deployable');
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -1223,7 +1223,7 @@ class Asset extends Depreciable
|
|||
public function scopeNotArchived($query)
|
||||
{
|
||||
return $query->whereHas('assetstatus', function ($query) {
|
||||
$query->where('status_label', '!=', 'archived');
|
||||
$query->where('status_type', '!=', 'archived');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue