1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-03-14 19:59:38 +01:00

Fixes issue with wrong db column names (#151)

This commit is contained in:
Kovah 2020-09-21 23:31:51 +02:00
parent d077600182
commit b6b0d22643
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
2 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ class ListController extends Controller
$links = $list->links()
->privateOnly(false)
->orderBy(
$request->input('orderBy', 'name'),
$request->input('orderBy', 'title'),
$request->input('orderDir', 'ASC')
)->paginate(getPaginationLimit());
@ -46,7 +46,7 @@ class ListController extends Controller
'list' => $list,
'list_links' => $links,
'route' => $request->getBaseUrl(),
'order_by' => $request->input('orderBy', 'name'),
'order_by' => $request->input('orderBy', 'title'),
'order_dir' => $request->input('orderDir', 'ASC'),
]);
}

View File

@ -23,7 +23,7 @@ class TagController extends Controller
$links = $tag->links()
->privateOnly(false)
->orderBy(
$request->input('orderBy', 'name'),
$request->input('orderBy', 'title'),
$request->input('orderDir', 'ASC')
)->paginate(getPaginationLimit());
@ -31,7 +31,7 @@ class TagController extends Controller
'tag' => $tag,
'tag_links' => $links,
'route' => $request->getBaseUrl(),
'order_by' => $request->input('orderBy', 'name'),
'order_by' => $request->input('orderBy', 'title'),
'order_dir' => $request->input('orderDir', 'ASC'),
]);
}