When a user creates or edits a node while not filling in all required fields and then clicks either 'save' or 'preview', the newly shown page has no preview button. You can only correct the mistake and then save. This is especially bad when the node type is selected to have only a preview button; in that case there's no button at all after submitting the form!
This can be easily repaired by removing the unset($form_element['buttons']['preview']); line (see attached patch), however I'm not sure if that's the right way to fix it.
This line seems to have been added in revision 1.3.2, but the CVS log message says only "More oxygen documentation", and there's no comment to explain why this change was added.
| Comment | File | Size | Author |
|---|---|---|---|
| nodepreview_by_type.module.patch | 803 bytes | Peter Bex |
Comments
Comment #1
dawehnerupdate
Comment #2
jonhy81 commented+1. Thanks. It's worked for me.
Comment #3
lpalgarvio commented+1
Comment #4
Peter Bex commentedLooks like it's been reviewed
Comment #5
joelstein commentedCan this get committed? It definitely solves a critical issue.
Comment #6
dawehnerJust committed this to 6.x-1.x.
Comment #7
joelstein commentedThanks!