Fix invalid object in event
authorMarcel Werk <burntime@woltlab.com>
Mon, 28 Oct 2024 09:14:55 +0000 (10:14 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 28 Oct 2024 09:14:55 +0000 (10:14 +0100)
wcfsetup/install/files/lib/system/comment/response/command/UpdateResponse.class.php

index 0624370c577e4611f6538573fc35fef21f9ad82b..d7f369bd9ebda14b802d1df78c1f70085c56e5ac 100644 (file)
@@ -22,8 +22,7 @@ final class UpdateResponse
     public function __construct(
         private readonly CommentResponse $response,
         private readonly HtmlInputProcessor $htmlInputProcessor,
-    ) {
-    }
+    ) {}
 
     public function __invoke(): void
     {
@@ -42,7 +41,7 @@ final class UpdateResponse
         ]);
         $action->executeAction();
 
-        $event = new ResponseUpdated(new CommentResponse($this->response->commentID));
+        $event = new ResponseUpdated(new CommentResponse($this->response->responseID));
         EventHandler::getInstance()->fire($event);
     }
 }