entity_ui_bundle_add_page() does this:

    $dummy_entity = entity_create($entity_type, array(
      'bundle' => $bundle_name,
    ));

Obviously, most entity types don't call their bundle key "bundle", that is why we have entity keys.
And this is how a crash occurs.

CommentFileSizeAuthor
#1 2126729-1-fix-entity-ui-bundle.patch605 bytesbojanz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz’s picture

Status: Active » Needs review
FileSize
605 bytes

Here's a simple patch.

SchnWalter’s picture

SchnWalter’s picture

Status: Needs review » Reviewed & tested by the community
fago’s picture

Status: Reviewed & tested by the community » Fixed

hm, not sure how this happened. Howsoever, thanks & committed!

Status: Fixed » Closed (fixed)

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