mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
FIX: OFFSET wasn't being applied correctly
This commit is contained in:
parent
e831203897
commit
1714019cf7
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue