From 79808ee28532e21d7abe2c50c4508df97c21ed30 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Mon, 2 Oct 2023 22:19:19 +0900 Subject: [PATCH] Add new trigger points in comment.copyCommentByDocument to replace old, nonstandard "add" name --- modules/comment/comment.controller.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/comment/comment.controller.php b/modules/comment/comment.controller.php index ceef0f91b..b2cd4d786 100644 --- a/modules/comment/comment.controller.php +++ b/modules/comment/comment.controller.php @@ -2153,10 +2153,12 @@ class CommentController extends Comment $args->source = $comment; $args->copied = $copy; ModuleHandler::triggerCall('comment.copyCommentByDocument', 'add', $args); + ModuleHandler::triggerCall('comment.copyCommentByDocument.each', 'before', $args); // insert a copied comment $this->insertComment($copy, true); + ModuleHandler::triggerCall('comment.copyCommentByDocument.each', 'after', $args); $copied_comments[$comment->comment_srl] = $copy->comment_srl; }