From 2f6f4fb2fd10f6018998f9997808ce6d69035587 Mon Sep 17 00:00:00 2001 From: Toon Van den Bos Date: Sat, 30 Nov 2019 15:18:10 +0100 Subject: [PATCH] Fixed limit bug on "Attach Resource" screen --- src/Orderable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Orderable.php b/src/Orderable.php index ba09362..ae79d16 100644 --- a/src/Orderable.php +++ b/src/Orderable.php @@ -70,6 +70,7 @@ public static function orderedIndexQuery($query, $attribute) public static function applyQueryOrder($query, $attribute, $direction = 'asc') { $query->getQuery()->orders = []; + $query->getQuery()->limit = null; return $query->orderBy($attribute, $direction); }