mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-21 13:54:57 +00:00
Fix Resource Context - Invalid Entity Type being passed (#23164)
(cherry picked from commit 643618823a719e84fa5404ff3e7222387bf7157e)
This commit is contained in:
parent
14db2d9264
commit
e080ab7be0
@ -63,9 +63,10 @@ public class CreateResourceContext<T extends EntityInterface> implements Resourc
|
||||
List<TagLabel> tags = new ArrayList<>();
|
||||
for (EntityInterface parent : parentEntities) {
|
||||
if (parent.getTags() != null) {
|
||||
tags.addAll(Entity.getEntityTags(getResource(), parent));
|
||||
tags.addAll(Entity.getEntityTags(parent.getEntityReference().getType(), parent));
|
||||
}
|
||||
}
|
||||
tags.addAll(Entity.getEntityTags(getResource(), entity));
|
||||
return getUniqueTags(tags);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user