Fix `CommentResponse::getLink()`
authorMatthias Schmidt <gravatronics@live.com>
Sun, 20 Aug 2017 09:52:13 +0000 (11:52 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 20 Aug 2017 09:52:13 +0000 (11:52 +0200)
See d02542af7ee0bfe2540737e0276b446773f42371

wcfsetup/install/files/lib/data/comment/response/CommentResponse.class.php

index 5643d47788a9aa456c5f40ab3c82be8db8ee5822..832075de0a305e6969f597c5cd8b96c99a87d6c0 100644 (file)
@@ -84,7 +84,7 @@ class CommentResponse extends DatabaseObject implements IMessage {
         */
        public function getLink() {
                /** @var ICommentManager $processor */
-               $processor = CommentHandler::getInstance()->getObjectType($this->objectTypeID)->getProcessor();
+               $processor = CommentHandler::getInstance()->getObjectType($this->getComment()->objectTypeID)->getProcessor();
                
                return $processor->getResponseLink($this);
        }