mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 22:07:29 -08:00
Fixed dumb indenting
This commit is contained in:
parent
2ddee9b44c
commit
9db28cf6d6
|
@ -860,14 +860,14 @@ public function checkin_email()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Query builder scope to order on assigned user
|
* Query builder scope to order on assigned user
|
||||||
*
|
*
|
||||||
* @param Illuminate\Database\Query\Builder $query Query builder instance
|
* @param Illuminate\Database\Query\Builder $query Query builder instance
|
||||||
* @param text $order Order
|
* @param text $order Order
|
||||||
*
|
*
|
||||||
* @return Illuminate\Database\Query\Builder Modified query builder
|
* @return Illuminate\Database\Query\Builder Modified query builder
|
||||||
*/
|
*/
|
||||||
public function scopeOrderAssigned($query, $order)
|
public function scopeOrderAssigned($query, $order)
|
||||||
{
|
{
|
||||||
return $query->join('users', 'assets.assigned_to', '=', 'users.id')->orderBy('users.first_name', $order)->orderBy('users.last_name', $order);
|
return $query->join('users', 'assets.assigned_to', '=', 'users.id')->orderBy('users.first_name', $order)->orderBy('users.last_name', $order);
|
||||||
|
|
Loading…
Reference in a new issue