diff --git a/modules/comment/comment.controller.php b/modules/comment/comment.controller.php index c000f4a238..0a508920d3 100644 --- a/modules/comment/comment.controller.php +++ b/modules/comment/comment.controller.php @@ -56,6 +56,7 @@ function procCommentVoteUp() $point = 1; $output = $this->updateVotedCount($comment_srl, $point); $this->add('voted_count', $output->get('voted_count')); + $this->add('target_srl', $comment_srl); return $output; } @@ -94,6 +95,7 @@ function procCommentVoteDown() $point = -1; $output = $this->updateVotedCount($comment_srl, $point); $this->add('blamed_count', $output->get('blamed_count')); + $this->add('target_srl', $comment_srl); return $output; } diff --git a/modules/document/document.controller.php b/modules/document/document.controller.php index b2c03e27a3..83accc08f9 100644 --- a/modules/document/document.controller.php +++ b/modules/document/document.controller.php @@ -41,6 +41,7 @@ function procDocumentVoteUp() $point = 1; $output = $this->updateVotedCount($document_srl, $point); $this->add('voted_count', $output->get('voted_count')); + $this->add('target_srl', $document_srl); return $output; } @@ -86,6 +87,7 @@ function procDocumentVoteDown() $point = -1; $output = $this->updateVotedCount($document_srl, $point); $this->add('blamed_count', $output->get('blamed_count')); + $this->add('target_srl', $document_srl); return $output; }