Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | comment_preview.patch | 813 bytes | svemir |
Comments
Comment #1
svemir CreditAttribution: svemir commentedI 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.
Comment #2
svemir CreditAttribution: svemir commentedWith 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.
Comment #3
Dries CreditAttribution: Dries commentedCommitted to HEAD and DRUPAL-4-5. Thanks.
Comment #4
(not verified) CreditAttribution: commented