mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
Merge branch 'develop'
This commit is contained in:
commit
98700cab8b
|
@ -963,7 +963,7 @@ class Asset extends Depreciable
|
||||||
*/
|
*/
|
||||||
public function scopeOrderModels($query, $order)
|
public function scopeOrderModels($query, $order)
|
||||||
{
|
{
|
||||||
return $query->join('models as asset_models', 'assets.model_id', '=', 'models.id')->orderBy('models.name', $order);
|
return $query->join('models as asset_models', 'assets.model_id', '=', 'asset_models.id')->orderBy('asset_models.name', $order);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue