From: Matthias Schmidt Date: Thu, 10 Jun 2021 05:51:43 +0000 (+0200) Subject: Fix embedded object handling after editing comment responses X-Git-Tag: 5.5.0_Alpha_1~668 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=185e4281b3370ad3b478bf9de7262b460a7791e2;p=GitHub%2FWoltLab%2FWCF.git Fix embedded object handling after editing comment responses --- diff --git a/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php b/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php index 7903550aef..7015c44577 100644 --- a/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php +++ b/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php @@ -322,16 +322,14 @@ class CommentResponseAction extends AbstractDatabaseObjectAction 'message' => $htmlInputProcessor->getHtml(), ]; - $htmlInputProcessor->setObjectID($this->comment->getObjectID()); + $htmlInputProcessor->setObjectID($this->response->getObjectID()); $hasEmbeddedObjects = MessageEmbeddedObjectManager::getInstance()->registerObjects($htmlInputProcessor); if ($this->response->hasEmbeddedObjects != $hasEmbeddedObjects) { $data['hasEmbeddedObjects'] = $this->response->hasEmbeddedObjects ? 0 : 1; } (new self([$this->response], 'update', [ - 'data' => [ - 'message' => $htmlInputProcessor->getHtml(), - ], + 'data' => $data, ]))->executeAction(); $response = new CommentResponse($this->response->getObjectID());