bug-fix-patch-6

# Fixed search input hieght in user directory for all browsers
# Showing agents by ascending name order in ticket assign modal pop ups
This commit is contained in:
Manish Verma
2016-12-21 16:29:55 +05:30
parent d29ca0e626
commit df14836985
3 changed files with 3 additions and 3 deletions

View File

@@ -1074,7 +1074,7 @@ class UserController extends Controller
public function getAgentDetails()
{
$users = User::where('role', '<>', 'user')->where('active', '=', 1)->get();
$users = User::where('role', '<>', 'user')->where('active', '=', 1)->orderBy('first_name')->get();
foreach ($users as $user) {
echo "<option value='user_$user->id'>".$user->name().'</option>';
}