Commit e01e9fd6 authored by bojanz's avatar bojanz Committed by fago

Issue #2126729 by bojanz: Entity_ui_bundle_add_page() doesn't pass the correct...

Issue #2126729 by bojanz: Entity_ui_bundle_add_page() doesn't pass the correct bundle to entity_create.
parent 5d301ee2
......@@ -133,7 +133,7 @@ function entity_ui_bundle_add_page($entity_type) {
foreach ($info['bundles'] as $bundle_name => $bundle_info) {
// Create an empty entity with just the bundle set to check for access.
$dummy_entity = entity_create($entity_type, array(
'bundle' => $bundle_name,
$info['entity keys']['bundle'] => $bundle_name,
));
// If modules use a uid, they can default to the current-user
// in their create() method on the storage controller.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment