1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-09 10:22:51 +03:00

Roles: fixed error upon created_at sorting

Added test to cover core role sorting functionality.
For #4350
This commit is contained in:
Dan Brown
2023-07-04 21:52:46 +01:00
parent 1a56de6cb4
commit 18ee80a743
2 changed files with 27 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ class RolesAllPaginatedAndSorted
{
$sort = $listOptions->getSort();
if ($sort === 'created_at') {
$sort = 'users.created_at';
$sort = 'roles.created_at';
}
$query = Role::query()->select(['*'])