diff --git a/app/models/story.rb b/app/models/story.rb index 80d6f0c4f0..58f0fef20f 100644 --- a/app/models/story.rb +++ b/app/models/story.rb @@ -78,8 +78,8 @@ class Story < WorkPackage Story.where(Story.condition(project_id, sprint_id)) .joins(:status) .order(Story::ORDER) - .limit(1) .offset(rank -1) + .first end def self.types