Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
1a2bf588
Commit
1a2bf588
authored
Oct 08, 2007
by
Gábor Hojtsy
Browse files
#63990
by several people: fix comment submission on nodes where a form is displayed
parent
4f4d08c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/comment/comment.module
View file @
1a2bf588
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment