Skip to content
Snippets Groups Projects
Commit 1a2bf588 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

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

parent 4f4d08c2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment