1
0
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:
Kovah 2024-02-05 22:57:03 +01:00
parent 3cf7bbffc8
commit 04c8b47a8a
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
2 changed files with 2 additions and 2 deletions

View File

@ -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', [

View File

@ -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', [