Commit 72ed68d4 authored by Dries's avatar Dries
Browse files

- Patch #42971 by markus_petrux: input format not correctly shown when editing a comment.

parent db923526
......@@ -1309,7 +1309,7 @@ function comment_form($edit, $title = NULL) {
$form['comment'] = array('#type' => 'textarea', '#title' => t('Comment'), '#rows' => 15, '#default_value' => $edit['comment'] ? $edit['comment'] : $user->signature, '#required' => TRUE
);
$form['format'] = filter_form($node->format, 18);
$form['format'] = filter_form($edit['format'], 18);
$form['cid'] = array('#type' => 'value', '#value' => $edit['cid']);
$form['pid'] = array('#type' => 'value', '#value' => $edit['pid']);
......
......@@ -1309,7 +1309,7 @@ function comment_form($edit, $title = NULL) {
$form['comment'] = array('#type' => 'textarea', '#title' => t('Comment'), '#rows' => 15, '#default_value' => $edit['comment'] ? $edit['comment'] : $user->signature, '#required' => TRUE
);
$form['format'] = filter_form($node->format, 18);
$form['format'] = filter_form($edit['format'], 18);
$form['cid'] = array('#type' => 'value', '#value' => $edit['cid']);
$form['pid'] = array('#type' => 'value', '#value' => $edit['pid']);
......
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