Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2126729-1-fix-entity-ui-bundle.patch | 605 bytes | bojanz |
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedHere's a simple patch.
Comment #2
SchnWalter CreditAttribution: SchnWalter commentedmarked #2143811: Use [bundle keys][bundle] in entity_ui_bundle_add_page as a duplicate of this
Comment #3
SchnWalter CreditAttribution: SchnWalter commentedComment #4
fagohm, not sure how this happened. Howsoever, thanks & committed!