diff --git a/src/main/java/org/ecocean/servlet/IndividualAddComment.java b/src/main/java/org/ecocean/servlet/IndividualAddComment.java index 1bf474aef1..cbccbd6f47 100644 --- a/src/main/java/org/ecocean/servlet/IndividualAddComment.java +++ b/src/main/java/org/ecocean/servlet/IndividualAddComment.java @@ -34,6 +34,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) response.setContentType("text/html"); PrintWriter out = response.getWriter(); boolean locked = false; + String newComment = ""; myShepherd.beginDBTransaction(); if ((request.getParameter("individual") != null) && @@ -43,9 +44,10 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) "individual")); if (ServletUtilities.isUserAuthorizedForIndividual(commentMe, request)) { try { - commentMe.addComments("
" + request.getParameter("user") + " on " +
+ newComment = (" " + request.getParameter("user") + " on " +
(new java.util.Date()).toString() + " Return to " + request.getParameter("individual") +
// " <%=researcherComments %>: <%=sharky.getComments().replaceAll("\n", "
-
" +
request.getParameter("comments") + "
")%>