Fix order account.

This commit is contained in:
James Cole 2019-10-27 18:12:30 +01:00
parent 6b4b69b695
commit d5afba6137
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -554,6 +554,7 @@ class AccountRepository implements AccountRepositoryInterface
{
$dbQuery = $this->user->accounts()
->where('active', 1)
->orderBy('accounts.name', 'ASC')
->with(['accountType']);
if ('' !== $query) {
$search = sprintf('%%%s%%', $query);