The patch that came out of #1462772, and more specifically https://drupal.org/files/entity_templates.patch, appears to break modules that do define their own entity templates.

An example is the Election module.

The custom template is never called despite it being registered by the module.

The exact error message:
EntityMalformedException: Missing bundle property on entity of type election_post. in entity_extract_ids()

Commenting out 'pattern' => $pattern in entity_theme() fixes the issue.

Comments

sdragnev’s picture

Status: Active » Closed (works as designed)

I think this is a side-effect due to a non-standard entity implementation of the election module.
Related to this: https://www.drupal.org/node/1170198