Fix Resource Context - Invalid Entity Type being passed (#23164)

This commit is contained in:
Mohit Yadav 2025-08-30 19:25:27 +05:30 committed by GitHub
parent 65aff8ce8e
commit 643618823a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}