git-svn-id: svn://svn.dsv.su.se/scipro/scipro/trunk@323 73ecded7-942e-4092-bab0-0e58ef0ee984
This commit is contained in:
joha-asc 2011-03-14 12:00:30 +00:00
parent 2c97da9bd9
commit cc1d0af462

@ -93,8 +93,8 @@ public class CommentThreadPanel extends Panel{
final Comment c = item.getModelObject();
item.add(new Label("date", c.getDateCreated()
.toString()));
item.add(new Label("from", c.getUser()
.getFirstName() + " " + c.getUser().getLastName()));
item.add(new Label("from", c.getCreator()
.getFirstName() + " " + c.getCreator().getLastName()));
item.add(new Label("message", c.getComment()));
item.add(new CommentDeleteLink("deleteComment", c));
};
@ -122,7 +122,7 @@ public class CommentThreadPanel extends Panel{
List<Comment> commentList = commentThread.getCommentList();
Comment comment = new Comment();
comment.setComment(((CommentThreadModel) form.getModelObject()).getTextMessage());
comment.setUser(userDao.load(1L));
comment.setCreator(userDao.load(1L));
comment = commentDao.save(comment);
commentList.add(comment);
commentThread.setCommentList(commentList);