mirror of
https://github.com/Kovah/LinkAce.git
synced 2025-01-29 10:59:49 +01:00
Fix order direction handling for controllers
This commit is contained in:
parent
3cf7bbffc8
commit
04c8b47a8a
@ -52,7 +52,7 @@ class TagController extends Controller
|
||||
->publicOnly()
|
||||
->orderBy(
|
||||
$request->input('orderBy', 'title'),
|
||||
$request->input('orderDir', 'asc')
|
||||
$this->getOrderDirection($request, 'asc')
|
||||
)->paginate(getPaginationLimit());
|
||||
|
||||
return view('guest.tags.show', [
|
||||
|
@ -97,7 +97,7 @@ class ListController extends Controller
|
||||
->byUser()
|
||||
->orderBy(
|
||||
$request->input('orderBy', 'created_at'),
|
||||
$request->input('orderDir', 'desc')
|
||||
$this->getOrderDirection($request)
|
||||
)->paginate(getPaginationLimit());
|
||||
|
||||
return view('models.lists.show', [
|
||||
|
Loading…
x
Reference in New Issue
Block a user