mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Merge pull request #621 from wernerkrauss/fix-619
FIX forward IDs given by DataList::relation()
This commit is contained in:
commit
fc51e77af3
@ -20,11 +20,12 @@ use SilverStripe\View\Parsers\URLSegmentFilter;
|
|||||||
trait BlogObject
|
trait BlogObject
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
* @param int|array|null $id Optional ID(s) for parent of this relation, if not the current record
|
||||||
* @return DataList
|
* @return DataList
|
||||||
*/
|
*/
|
||||||
public function BlogPosts()
|
public function BlogPosts($id = null)
|
||||||
{
|
{
|
||||||
$blogPosts = parent::BlogPosts();
|
$blogPosts = parent::BlogPosts($id);
|
||||||
|
|
||||||
$this->extend('updateGetBlogPosts', $blogPosts);
|
$this->extend('updateGetBlogPosts', $blogPosts);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user