From 58040ebaab408902e7cb71aa03e3817165a84738 Mon Sep 17 00:00:00 2001 From: Alex Dolski Date: Tue, 16 Jan 2024 13:53:42 -0600 Subject: [PATCH] select_clause() does not include the collection handle prefix --- app/util/csv_exporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/util/csv_exporter.rb b/app/util/csv_exporter.rb index 94256ba2..a10cd1d8 100644 --- a/app/util/csv_exporter.rb +++ b/app/util/csv_exporter.rb @@ -125,7 +125,7 @@ def select_clause(elements) # collection_handles column columns << "array_to_string( array( - SELECT CONCAT('#{Handle.prefix}/', h.suffix) AS suffix + SELECT h.suffix AS suffix FROM handles h LEFT JOIN collection_item_memberships cim ON cim.item_id = items.id WHERE cim.item_id = items.id