If I choose at the 'Add Template' dialog a content type which has an underscore in it's machine readable name the subsequent 'Edit Template' dialog goes astray. After the creation of the template the 'Edit Template' dialog is automatically invoked as usual. But it does not contain the 'Update Template' and 'Delete Template' buttons at the bottom. Instead it has a 'Save' and a 'Preview' button. If I click the 'Save' button a new instance of the content type is created instead of an update of the template. The same happens if I click the 'Edit Template' link.

Comments

deviantintegral’s picture

Status: Active » Needs review
StatusFileSize
new954 bytes

I found the issue - the type was being exploded() on underscores. I've attached a patch which grabs the node type directly from the form element - can you try this patch and see if it fixes it for you? Thanks!

deviantintegral’s picture

StatusFileSize
new961 bytes

Reroll for HEAD now that the hook_form_alter() call has moved files. I'll be committing this shortly.

deviantintegral’s picture

Status: Needs review » Fixed

Committed to HEAD.

martin mayer’s picture

Sorry for answering so late. Just tested it and seems to work fine.

Status: Fixed » Closed (fixed)

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