mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-31 20:51:26 +00:00
Minor : fix populateOwners method to patch all fields of owners (#17272)
This commit is contained in:
parent
b5ea73ef47
commit
4bb6d7ec1c
@ -1958,8 +1958,11 @@ public abstract class EntityRepository<T extends EntityInterface> {
|
|||||||
if (nullOrEmpty(owners)) {
|
if (nullOrEmpty(owners)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// populate owner entityRefs with all fields
|
||||||
List<EntityReference> refs = validateOwners(owners);
|
List<EntityReference> refs = validateOwners(owners);
|
||||||
owners = new ArrayList<>(refs);
|
for (int i = 0; i < owners.size(); i++) {
|
||||||
|
EntityUtil.copy(refs.get(i), owners.get(i));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Transaction
|
@Transaction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user