Fix userlist for accessory checkout

This commit is contained in:
snipe 2016-04-07 05:03:14 -07:00
parent 0e6b8a8358
commit 95e4845176

View file

@ -278,7 +278,7 @@ class AccessoriesController extends Controller
}
// Get the dropdown of users and then pass it to the checkout view
$users_list = array('' => 'Select a User') + DB::table('users')->select(DB::raw('concat(last_name,", ",first_name," (",username,")") as full_name, id'))->whereNull('deleted_at')->orderBy('last_name', 'asc')->orderBy('first_name', 'asc')->lists('full_name', 'id');
$users_list = Helper::usersList();
return View::make('accessories/checkout', compact('accessory'))->with('users_list', $users_list);