- Patch #216515 by chx, Damien Tournoud, et al: fixed form API glitch with caching.
parent
21da8b32dc
commit
81c71bc891
|
|
@ -852,6 +852,7 @@ function form_builder($form_id, $form, &$form_state) {
|
|||
}
|
||||
|
||||
if (isset($form['#type']) && $form['#type'] == 'form') {
|
||||
$cache = NULL;
|
||||
$complete_form = $form;
|
||||
if (!empty($form['#programmed'])) {
|
||||
$form_state['submitted'] = TRUE;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ function comment_reply($node, $pid = NULL) {
|
|||
|
||||
if (user_access('access comments')) {
|
||||
// The user is previewing a comment prior to submitting it.
|
||||
if ($op == t('Preview comment')) {
|
||||
if ($op == t('Preview')) {
|
||||
if (user_access('post comments')) {
|
||||
$output .= comment_form_box(array('pid' => $pid, 'nid' => $node->nid), NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue