git-svn-id: svn://svn.dsv.su.se/scipro/scipro/trunk@469 73ecded7-942e-4092-bab0-0e58ef0ee984
This commit is contained in:
joha-asc 2011-03-24 10:40:20 +00:00
parent 1484082216
commit fc70bec4ba

@ -196,7 +196,14 @@ public class CommentThreadPanel extends Panel {
@Override
public void onClick(AjaxRequestTarget target) {
comment = commentDao.reLoad(comment);
CommentThread ct = commentThreadDao.getCommentThreadByComment(comment);
List<Comment> commentList = ct.getCommentList();
commentList.remove(comment);
ct.setCommentList(commentList);
commentThreadDao.save(ct);
commentDao.delete(comment);
webMarkupContainer.remove(commentListView);
webMarkupContainer.remove(customPagingNavigator);
generateCommentListView();