mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Adding ansi quote to identifier
This commit is contained in:
parent
317729604d
commit
3d9031aaac
@ -127,7 +127,7 @@ class BlogArchiveWidget extends Widget
|
||||
->addLeftJoin('SiteTree' . $suffix, '"SiteTree' . $suffix . '"."ID" = "BlogPost' . $suffix . '"."ID"')
|
||||
->addWhere([
|
||||
'"PublishDate" <= ?' => DBDatetime::now()->Format(DBDatetime::ISO_DATETIME),
|
||||
'SiteTree' . $suffix . '.ParentID' => $this->BlogID,
|
||||
'"SiteTree' . $suffix . '"."ParentID"' => $this->BlogID,
|
||||
]);
|
||||
|
||||
$posts = $query->execute();
|
||||
|
Loading…
Reference in New Issue
Block a user