Commit d620084b authored by catch's avatar catch

Issue #2207907 by chx: Comment stubbing is broken.

parent 07cd3c99
...@@ -193,7 +193,9 @@ public static function postDelete(EntityStorageControllerInterface $storage_cont ...@@ -193,7 +193,9 @@ public static function postDelete(EntityStorageControllerInterface $storage_cont
*/ */
public function referencedEntities() { public function referencedEntities() {
$referenced_entities = parent::referencedEntities(); $referenced_entities = parent::referencedEntities();
$referenced_entities[] = $this->getCommentedEntity(); if ($this->getCommentedEntityId()) {
$referenced_entities[] = $this->getCommentedEntity();
}
return $referenced_entities; return $referenced_entities;
} }
......
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