Commit 52b3deb6 authored by xjm's avatar xjm
Browse files

Issue #2526084 by andypost, yarik.lutsiuk: Fix comment in Comment entity

parent 6f973445
......@@ -81,7 +81,7 @@ public function preSave(EntityStorageInterface $storage) {
if ($this->isNew()) {
// Add the comment to database. This next section builds the thread field.
// Also see the documentation for comment_view().
// @see \Drupal\comment\CommentViewBuilder::buildComponents()
$thread = $this->getThread();
if (empty($thread)) {
if ($this->threadLock) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment