Author: rombert Date: Thu Sep 24 10:47:49 2015 New Revision: 1705029 URL: http://svn.apache.org/viewvc?rev=1705029&view=rev Log: slingshot: fix comment persistence ( title vs text )
Modified: sling/trunk/samples/slingshot/src/main/java/org/apache/sling/sample/slingshot/comments/impl/CommentsServiceImpl.java Modified: sling/trunk/samples/slingshot/src/main/java/org/apache/sling/sample/slingshot/comments/impl/CommentsServiceImpl.java URL: http://svn.apache.org/viewvc/sling/trunk/samples/slingshot/src/main/java/org/apache/sling/sample/slingshot/comments/impl/CommentsServiceImpl.java?rev=1705029&r1=1705028&r2=1705029&view=diff ============================================================================== --- sling/trunk/samples/slingshot/src/main/java/org/apache/sling/sample/slingshot/comments/impl/CommentsServiceImpl.java (original) +++ sling/trunk/samples/slingshot/src/main/java/org/apache/sling/sample/slingshot/comments/impl/CommentsServiceImpl.java Thu Sep 24 10:47:49 2015 @@ -77,7 +77,7 @@ public class CommentsServiceImpl impleme final Map<String, Object> properties = new HashMap<String, Object>(); properties.put(ResourceResolver.PROPERTY_RESOURCE_TYPE, CommentsUtil.RESOURCETYPE_COMMENT); properties.put(CommentsUtil.PROPERTY_TITLE, c.getTitle()); - properties.put(CommentsUtil.PROPERTY_TEXT, c.getTitle()); + properties.put(CommentsUtil.PROPERTY_TEXT, c.getText()); properties.put(CommentsUtil.PROPERTY_USER, c.getCreatedBy()); // we try it five times