Update code/BlogTree.php Fixed ambiguous column ParentID in filter.

This commit is contained in:
jaredkipe 2012-07-11 11:13:25 -07:00
parent b395e6f12f
commit 9702fd5db4

View File

@ -202,7 +202,7 @@ class BlogTree extends Page {
// Otherwise, do the actual query // Otherwise, do the actual query
if($filter) $filter .= ' AND '; if($filter) $filter .= ' AND ';
$filter .= '"ParentID" IN (' . implode(',', $holderIDs) . ") $tagCheck $dateCheck"; $filter .= '"SiteTree"."ParentID" IN (' . implode(',', $holderIDs) . ") $tagCheck $dateCheck";
$order = '"BlogEntry"."Date" DESC'; $order = '"BlogEntry"."Date" DESC';