Skip to content

Commit

Permalink
Merge pull request #20 from Nyratas/master
Browse files Browse the repository at this point in the history
Fixed limit bug on "Attach Resource" screen
  • Loading branch information
michielkempen authored Nov 30, 2019
2 parents 9777b79 + 2f6f4fb commit 53f7d86
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 53f7d86

Please sign in to comment.