Skip to content

Commit

Permalink
Use correct quotes for PostExport attached_images conditions.
Browse files Browse the repository at this point in the history
Fixes PostgreSQL incorrectly determining the strings to be a table reference.

Fixes #477
  • Loading branch information
Ben Thomson committed Oct 17, 2019
1 parent be523b6 commit f4b16de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/PostExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
]
];

Expand Down

0 comments on commit f4b16de

Please sign in to comment.