Author: tchemit Date: 2012-05-24 11:18:03 +0200 (Thu, 24 May 2012) New Revision: 3380 Url: http://chorem.org/repositories/revision/pollen/3380 Log: fixes #565: Date are no more displayed in comments of a poll Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPollComments.java Modified: trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPollComments.java =================================================================== --- trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPollComments.java 2012-05-24 09:14:53 UTC (rev 3379) +++ trunk/pollen-ui-struts2/src/main/java/org/chorem/pollen/ui/actions/json/GetPollComments.java 2012-05-24 09:18:03 UTC (rev 3380) @@ -26,7 +26,6 @@ import com.google.common.base.Preconditions; import com.google.common.collect.Sets; import org.chorem.pollen.business.persistence.Comment; -import org.chorem.pollen.business.persistence.PollAccount; import org.chorem.pollen.business.persistence.UserAccount; import org.chorem.pollen.entities.PollenBinderHelper; import org.chorem.pollen.services.impl.PollCommentService; @@ -98,10 +97,9 @@ Map<String, Object> map = binder.obtainProperties( comment, Comment.PROPERTY_TEXT, - Comment.PROPERTY_POST_DATE + Comment.PROPERTY_POST_DATE, + Comment.PROPERTY_AUTHOR ); - map.put(Comment.PROPERTY_POLL_ACCOUNT + "." + PollAccount.PROPERTY_VOTING_ID, - comment.getPollAccount().getVotingId()); map.put("id", comment.getTopiaId()); Set<String> functions = getCommentFunctions(pollService, comment,