mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
parent
4df49c8db7
commit
fc9209523c
@ -22,8 +22,7 @@ class CommentList extends HasManyList
|
|||||||
|
|
||||||
public function __construct($parentClassName)
|
public function __construct($parentClassName)
|
||||||
{
|
{
|
||||||
parent::__construct('Comment', 'ParentID');
|
parent::__construct('Comment', 'Comment"."ParentID');
|
||||||
|
|
||||||
|
|
||||||
// Ensure underlying DataQuery globally references the class filter
|
// Ensure underlying DataQuery globally references the class filter
|
||||||
$this->dataQuery->setQueryParam('Foreign.Class', $parentClassName);
|
$this->dataQuery->setQueryParam('Foreign.Class', $parentClassName);
|
||||||
|
Loading…
Reference in New Issue
Block a user