mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fix duplication
This commit is contained in:
parent
29f080d771
commit
4268621328
@ -29,16 +29,4 @@ class BlogPostFilter extends DataExtension {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* This is a fix so that when we try to fetch subclasses of BlogPost,
|
|
||||||
* lazy loading includes the BlogPost table in its query. Leaving this table out
|
|
||||||
* means the default sort order column PublishDate causes an error.
|
|
||||||
**/
|
|
||||||
public function augmentLoadLazyFields(SQLQuery &$query, &$dataQuery, $parent) {
|
|
||||||
|
|
||||||
// Ensures that we're joining the BlogPost table which holds required db fields.
|
|
||||||
$dataQuery->innerJoin("BlogPost", "`SiteTree`.`ID` = `BlogPost`.`ID`");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user