Skip to content

Commit 3934135

Browse files
committed
fix: resolve polymorphic association error in csv export
1 parent cde50dc commit 3934135

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/services/forest_liana/resources_getter.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def initialize(resource, params, forest_user)
1616
@search_query_builder = SearchQueryBuilder.new(@params, @includes, @collection, @user)
1717

1818
prepare_query
19+
@base_records_for_batch = @records
1920
end
2021

2122
def self.get_ids_from_request(params, user)
@@ -51,7 +52,7 @@ def count
5152
end
5253

5354
def query_for_batch
54-
@records
55+
@base_records_for_batch
5556
end
5657

5758
def records

0 commit comments

Comments
 (0)