summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-10-08 14:22:31 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-10-08 14:22:31 +0000
commit1a2bf588e638d4782502ebc7c6c6c9ddc9d20ab7 (patch)
treeb4c63d781d787933e2410ee0cfcda897484c5c9c /modules
parent4f4d08c23d6d4ef866902220fd4a155744207dda (diff)
downloadbrdo-1a2bf588e638d4782502ebc7c6c6c9ddc9d20ab7.tar.gz
brdo-1a2bf588e638d4782502ebc7c6c6c9ddc9d20ab7.tar.bz2
#63990 by several people: fix comment submission on nodes where a form is displayed
Diffstat (limited to 'modules')
-rw-r--r--modules/comment/comment.module3
1 files changed, 2 insertions, 1 deletions
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;
}