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.

CommentFileSizeAuthor
nodepreview_by_type.module.patch803 bytesPeter Bex

Comments

dawehner’s picture

Status: Active » Needs review

update

jonhy81’s picture

Issue tags: +preview, +form error

+1. Thanks. It's worked for me.

lpalgarvio’s picture

+1

Peter Bex’s picture

Status: Needs review » Reviewed & tested by the community

Looks like it's been reviewed

joelstein’s picture

Priority: Normal » Critical

Can this get committed? It definitely solves a critical issue.

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

Just committed this to 6.x-1.x.

joelstein’s picture

Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -preview, -form error

Automatically closed -- issue fixed for 2 weeks with no activity.