From 1714019cf7e90a3b8e8ce5e9a8370bba51bc2579 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 11 May 2016 13:39:21 -0400 Subject: [PATCH] FIX: OFFSET wasn't being applied correctly --- lib/topic_query.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/topic_query.rb b/lib/topic_query.rb index d43ffd3cbdc..8c9ba0d1a34 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -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]