- Patch #216515 by chx, Damien Tournoud, et al: fixed form API glitch with caching.

merge-requests/26/head
Dries Buytaert 2008-06-24 17:01:33 +00:00
parent 21da8b32dc
commit 81c71bc891
5 changed files with 5 additions and 4 deletions

View File

@ -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;

View File

@ -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);
}