- Issue created by @kaszarobert
- Merge request !3Issue #3500175: Compatibility with the Automatic Entity Label module → (Closed) created by kaszarobert
- 🇫🇷France lazzyvn paris
this patch is not good but i still merge and fix it later. actually It needs to check method on entity label() if it exists because different entities will have different title function
- 4394be3b committed on 1.x
Issue #3500175: Compatibility with the Automatic Entity Label module
- 4394be3b committed on 1.x
- 🇮🇳India sahil.shaikh
On Above discussed patch can't this be applied
$data = json_encode($query + [
"entity" => $entity->$labelKey->value . " (" . $entity->id() . ")",
]);instead of
$data = json_encode($query + [
"entity" => $entity->label() . " (" . $entity->id() . ")",
]);
where we are already checking entity type and getting its labelKey and fetching the value - Status changed to Needs review
about 2 months ago 12:43pm 16 April 2025 Automatically closed - issue fixed for 2 weeks with no activity.
It still doesn't work.(Dev version)
If you create a new entity, the output is still"%Auto Entity Label% (394)".
If you select from a list of existing entities, the output is "empty". The selected entity is not visible and is not loaded.- 🇫🇷France lazzyvn paris
I think the module can't support automatic entity label because it uses hook_inline_entity_form_table_fields_alter and hook_entity_insert / hook_entity_presave to generate the label after save, this is not the right way, it should use the event lister on the entity you can do it by your custom module.