The Unified and Autonomous Development Platform
Fix the bug that code comment search throws exception when date is specified
robin shinedf03f971ee84
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CodeCommentFilter.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CodeCommentFilter.javaindex 4dd217a47a..b8b12fefc1 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CodeCommentFilter.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CodeCommentFilter.java@@ -120,9 +120,9 @@ public class CodeCommentFilter implements Serializable {}if (before != null)- criteria.add(Restrictions.le("createDate", before));+ criteria.add(Restrictions.le("date", before));if (after != null)- criteria.add(Restrictions.ge("createDate", after));+ criteria.add(Restrictions.ge("date", after));}public void filter(Collection<CodeComment> comments) {