Merge branch 'develop'

This commit is contained in:
snipe 2017-10-23 19:14:13 -07:00
commit 3922569d7f

View file

@ -1060,7 +1060,7 @@ class Asset extends Depreciable
*/
public function scopeOrderLocation($query, $order)
{
return $query->join('locations', 'locations.id', '=', 'assets.rtd_location_id')->orderBy('locations.name', $order);
return $query->leftJoin('locations', 'locations.id', '=', 'assets.rtd_location_id')->orderBy('locations.name', $order);
}