Fix - Existing custom properties getting removed on import of empty extension column (#19234)

This commit is contained in:
sonika-shah 2025-01-05 23:16:14 +05:30 committed by sonikashah
parent 35b281f9e3
commit bc825f8d59

View File

@ -2822,6 +2822,13 @@ public abstract class EntityRepository<T extends EntityInterface> {
return;
}
if (operation == Operation.PUT && updatedExtension == null) {
// Revert change to non-empty extension if it is being updated by a PUT request
// For PUT operations, existing extension can't be removed.
updated.setExtension(origExtension);
return;
}
List<JsonNode> added = new ArrayList<>();
List<JsonNode> deleted = new ArrayList<>();
JsonNode origFields = JsonUtils.valueToTree(origExtension);