references_dialog_entityreference_edit_link() calls references_dialog_get_admin_path() with NULL as the $bundle parameter, this means that edit links that contain [bundle] will not be reformatted correctly. This can be seen after applying the patch in #1359078: Add compatibility with ECK module and referencing an ECK entity via an entity reference field.

The attached patch attempts to discover the bundle via the supplied entity if no bundle name is explicitly supplied.

Comments

fabsor’s picture

Status: Needs review » Fixed

Great idea, I don't see why that could hurt. Commited!

Status: Fixed » Closed (fixed)

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