Skip to content

Commit

Permalink
fixed bug of empty types for main entity in linked_entities_with_prop…
Browse files Browse the repository at this point in the history
…erties
  • Loading branch information
BernhardKoschicek committed Sep 19, 2024
1 parent 3f6c6af commit 919c8d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openatlas/api/resources/api_entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 919c8d8

Please sign in to comment.