From 1a2bf588e638d4782502ebc7c6c6c9ddc9d20ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Mon, 8 Oct 2007 14:22:31 +0000 Subject: #63990 by several people: fix comment submission on nodes where a form is displayed --- modules/comment/comment.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index b593e7ddc..da3951cf9 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1701,7 +1701,8 @@ function comment_form_add_preview($form, &$form_state) { $output .= theme('comment_view', $comment, $node); } else { - $form['#suffix'] = node_view($node); + $suffix = empty($form['#suffix']) ? '' : $form['#suffix']; + $form['#suffix'] = $suffix . node_view($node); $edit['pid'] = 0; } -- cgit v1.2.3