Skip to content
Snippets Groups Projects
Commit f2b4fc1c authored by Dieter Holvoet's avatar Dieter Holvoet
Browse files

Issue #2811629 by dieterholvoet, osopolar, rachel_norfolk, larowlan: When...

Issue #2811629 by dieterholvoet, osopolar, rachel_norfolk, larowlan: When creating a table view of an entity without a Title field, error occurs
parent 14bc5488
No related branches found
No related tags found
1 merge request!29Issue #2811629: When creating a table view of an entity without a Title field, error occurs
Pipeline #373572 canceled
......@@ -146,6 +146,10 @@ function eck_entity_type_build(array &$entity_types) {
];
// Merge the definitions.
$definition = array_merge($definition, $base_definition);
// Remove the title entity key if not enabled.
if (!$eck_type->hasTitleField()) {
unset($definition['entity_keys']['label']);
}
// Add the new content entity to the entity types.
$entity_types[$definition['id']] = new ContentEntityType($definition);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment