roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (ROL-1912) Editing comment updates the comment posting date
Date Sun, 06 Mar 2011 19:16:03 GMT

     [ https://issues.apache.org/jira/browse/ROL-1912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Johnson resolved ROL-1912.
--------------------------------

    Resolution: Fixed

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();

> Editing comment updates the comment posting date
> ------------------------------------------------
>
>                 Key: ROL-1912
>                 URL: https://issues.apache.org/jira/browse/ROL-1912
>             Project: Roller
>          Issue Type: Bug
>    Affects Versions: 5.0
>            Reporter: David Johnson
>            Assignee: David Johnson
>             Fix For: 5.0
>
>


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message