Skip to content

Commit

Permalink
Fixed limit bug on "Attach Resource" screen
Browse files Browse the repository at this point in the history
  • Loading branch information
toonvandenbos authored Nov 30, 2019
1 parent 9777b79 commit 2f6f4fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Orderable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2f6f4fb

Please sign in to comment.