From 919c8d836734f991cb75872e3493182a5857bff9 Mon Sep 17 00:00:00 2001 From: Bernhard Koschicek-Krombholz Date: Thu, 19 Sep 2024 15:41:01 +0200 Subject: [PATCH] fixed bug of empty types for main entity in linked_entities_with_properties --- openatlas/api/resources/api_entity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openatlas/api/resources/api_entity.py b/openatlas/api/resources/api_entity.py index 02831daae..945a779f8 100644 --- a/openatlas/api/resources/api_entity.py +++ b/openatlas/api/resources/api_entity.py @@ -48,7 +48,7 @@ def get_linked_entities_with_properties( id_: int, properties: list[str]) -> list[Entity]: properties = list(g.properties) if 'all' in properties else properties - entity = ApiEntity.get_by_id(id_) + entity = ApiEntity.get_by_id(id_, types=True) return ([entity] + entity.get_linked_entities_recursive(properties, types=True) + entity.get_linked_entities_recursive(