The handler uses $entity_info['bundle keys']['bundle'] to get the name of the bundle property on the entity itself. This is of course wrong as it should be $entity_info['entity keys']['bundle'].

Trivial patch coming up.

Comments

kristiaanvandeneynde’s picture

Status: Active » Needs review
StatusFileSize
new1.1 KB
joachim’s picture

Status: Needs review » Reviewed & tested by the community

Confirming this is the correct fix.

The current code only works by happy accident that for most entities in use, the bundle key matches the entity bundle key. For example, $node->type (where a node keeps its type) and $node_type->type (where a node type object keeps its machine name) are both the 'type' key.

kristiaanvandeneynde’s picture

fago’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, committed.

Status: Fixed » Closed (fixed)

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