Commit 1a2bf588 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#63990 by several people: fix comment submission on nodes where a form is displayed

parent 4f4d08c2
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment