1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Improve sorting Shelf Books

This commit is contained in:
Guillaume Hanotel
2021-01-31 04:25:31 +01:00
parent 26ba056302
commit a7848b916b
4 changed files with 14 additions and 22 deletions

View File

@ -310,7 +310,7 @@ class UserController extends Controller
*/
public function changeSort(Request $request, string $id, string $type)
{
$validSortTypes = ['books', 'bookshelves'];
$validSortTypes = ['books', 'bookshelves', 'shelf_books'];
if (!in_array($type, $validSortTypes)) {
return redirect()->back(500);
}