summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-07-02 20:24:17 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-07-02 20:24:17 +0000
commitd048681f03b495256dbd52672a2a6e717425a5b0 (patch)
treea4d67d0ac4528bdb1405943d763e4c0acf0bfbb2 /modules/comment
parentfcee5e4f89f4955e3db7241c26d5f40ccf0ff45c (diff)
downloadbrdo-d048681f03b495256dbd52672a2a6e717425a5b0.tar.gz
brdo-d048681f03b495256dbd52672a2a6e717425a5b0.tar.bz2
#63990 by Heine and chx, allow commenting on nodes containing forms
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index bb96f6d27..46dce36ba 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1450,7 +1450,7 @@ function comment_form_add_preview($form, $edit) {
$output .= theme('comment_view', $comment);
}
else {
- $output .= node_view(node_load($edit['nid']));
+ $form['#suffix'] = node_view(node_load($edit['nid']));
$edit['pid'] = 0;
}