roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r1078520 - /roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java
Date Sun, 06 Mar 2011 17:31:44 GMT
Author: snoopdave
Date: Sun Mar  6 17:31:44 2011
New Revision: 1078520

URL: http://svn.apache.org/viewvc?rev=1078520&view=rev
Log:
Fix for ROL-1912, editing a comment should not updaate its posttime

Modified:
    roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java

Modified: roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java?rev=1078520&r1=1078519&r2=1078520&view=diff
==============================================================================
--- roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java
(original)
+++ roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java
Sun Mar  6 17:31:44 2011
@@ -105,6 +105,8 @@ public class CommentDataServlet extends 
                 if (weblog.hasUserPermission(rses.getAuthenticatedUser(), WeblogPermission.POST))
{
                     String content = Utilities.streamToString(request.getInputStream());
                     c.setContent(content);
+                    // don't update the posttime when updating the comment
+                    c.setPostTime(c.getPostTime());
                     wmgr.saveComment(c);
                     roller.flush();
 



Mime
View raw message