From f4b16deabd9181b6ff46e842dae961be2426ea90 Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Thu, 17 Oct 2019 20:31:20 +0800 Subject: [PATCH] Use correct quotes for PostExport attached_images conditions. Fixes PostgreSQL incorrectly determining the strings to be a table reference. Fixes #477 --- models/PostExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/PostExport.php b/models/PostExport.php index 2287cd6d..024d94a7 100644 --- a/models/PostExport.php +++ b/models/PostExport.php @@ -34,7 +34,7 @@ class PostExport extends ExportModel 'System\Models\File', 'order' => 'sort_order', 'key' => 'attachment_id', - 'conditions' => 'field = "featured_images" AND attachment_type = "RainLab\\\\Blog\\\\Models\\\\Post"' + 'conditions' => "field = 'featured_images' AND attachment_type = 'RainLab\\\\Blog\\\\Models\\\\Post'" ] ];