FIX: OFFSET wasn't being applied correctly

This commit is contained in:
Robin Ward 2016-05-11 13:39:21 -04:00
parent e831203897
commit 1714019cf7
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
1 changed files with 1 additions and 1 deletions

View File

@ -470,7 +470,7 @@ class TopicQuery
if options[:page]
offset = options[:page].to_i * options[:per_page]
result.offset(offset) if offset > 0
result = result.offset(offset) if offset > 0
end
if options[:topic_ids]