]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/UserController.php
Merge branch 'feature/sort-shelf-books' of git://github.com/guillaumehanotel/BookStac...
[bookstack] / app / Http / Controllers / UserController.php
index d797552f12d9442d978c502c9402c8c4c371a768..59c6d6edfc90485c30cd1d97717b4cb39af6c9d9 100644 (file)
@@ -300,7 +300,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);
         }