The Preview button is no longer present in 4.5.0 when a user writes a comment. The option in the Comment Config is enabled.

CommentFileSizeAuthor
#2 comment_preview.patch813 bytessvemir
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

svemir’s picture

I can confirm this issue, with a clarification: In my case "Preview Comment" button appears only when previews are required in comments config. When previews are "optional", the button does not appear at all.

svemir’s picture

FileSize
813 bytes

With this patch, comments module does the following:

1. If preview is optional, both "Preview Comment" and "Post Comment" buttons are always there. If there is an error in the form, both are still there, because the user is supposed to fix the error and resubmit without previewing again if he or she choses so, because preview is optional. Of course, if the error is not fixed, the comment does not get through. (without this patch, preview comment button is never there when previews are optional)

2. If preview is required, only preview button is there initially. After a succesful preview, both preview and submit buttons show. If there is an error (whether on preview or if user messes up the comment after a succesful preview), again only preview button shows.

Dries’s picture

Committed to HEAD and DRUPAL-4-5. Thanks.

Anonymous’s picture