Skip to content
Snippets Groups Projects
Commit be6fa112 authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

- Fix notification on reply comment

parent caa6bdaf
No related branches found
No related tags found
No related merge requests found
...@@ -273,7 +273,7 @@ public class CommentUserEventService extends AbstractService implements ChangeSe ...@@ -273,7 +273,7 @@ public class CommentUserEventService extends AbstractService implements ChangeSe
// Notify comment is a reply to another comment // Notify comment is a reply to another comment
if (StringUtils.isNotBlank(comment.getReplyTo())) { if (StringUtils.isNotBlank(comment.getReplyTo())) {
String parentCommentIssuer = getTypedFieldById(index, type, commentId, RecordComment.PROPERTY_ISSUER); String parentCommentIssuer = getTypedFieldById(index, type, comment.getReplyTo(), RecordComment.PROPERTY_ISSUER);
if (StringUtils.isNotBlank(parentCommentIssuer) && if (StringUtils.isNotBlank(parentCommentIssuer) &&
!issuer.equals(parentCommentIssuer) && !issuer.equals(parentCommentIssuer) &&
...@@ -290,7 +290,7 @@ public class CommentUserEventService extends AbstractService implements ChangeSe ...@@ -290,7 +290,7 @@ public class CommentUserEventService extends AbstractService implements ChangeSe
.setRecipient(parentCommentIssuer) .setRecipient(parentCommentIssuer)
.setReference(index, recordType, recordId) .setReference(index, recordType, recordId)
.setReferenceAnchor(commentId) .setReferenceAnchor(commentId)
.setTime(comment.getTime()) /*.setTime(comment.getTime()) - DO NOT set time, has the comment time is NOT the update time*/
.build()); .build());
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment