X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2FEntityReferenceSelection%2FCommentSelection.php;fp=web%2Fcore%2Fmodules%2Fcomment%2Fsrc%2FPlugin%2FEntityReferenceSelection%2FCommentSelection.php;h=3c13776e1245764002a15a4e16a04e73819c9319;hp=e806397a0e018bb00d25f46214b2dcacfd331b86;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php b/web/core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php index e806397a0..3c13776e1 100644 --- a/web/core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php +++ b/web/core/modules/comment/src/Plugin/EntityReferenceSelection/CommentSelection.php @@ -42,7 +42,7 @@ class CommentSelection extends DefaultSelection { // In order to create a referenceable comment, it needs to published. /** @var \Drupal\comment\CommentInterface $comment */ - $comment->setPublished(TRUE); + $comment->setPublished(); return $comment; }