Merge branch 'develop'

This commit is contained in:
snipe 2017-11-16 14:14:49 -08:00
commit 98700cab8b

View file

@ -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);
} }
/** /**