From 871a36f5500d6892d0be5b42e366f185436b3db7 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Fri, 8 Dec 2023 14:25:22 -0300 Subject: [PATCH] Remove Method was not working right when it was applied to an External Object Property that is collection of an External Object. Issue: 106028 --- .../java/com/genexus/GXExternalCollection.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common/src/main/java/com/genexus/GXExternalCollection.java b/common/src/main/java/com/genexus/GXExternalCollection.java index 46a62f029..de7795165 100644 --- a/common/src/main/java/com/genexus/GXExternalCollection.java +++ b/common/src/main/java/com/genexus/GXExternalCollection.java @@ -62,6 +62,20 @@ public boolean add(T item, int index) } } + public byte removeItem(int index) { + if(index > 0 && index <= size()) { + ((Vector)vectorExternal).remove((int) index -1); + } + + return super.removeItem(index); + } + + public void clear() { + vectorExternal.clear(); + + super.clear(); + } + public void setExternalStruct(AbstractCollection data) { vectorExternal = data;