Skip to content

Commit e6ced93

Browse files
committed
Remove Method was not working right when it was applied to an External Object Property that is collection of an External Object.
Issue: 106028
1 parent 5f982d4 commit e6ced93

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

common/src/main/java/com/genexus/GXExternalCollection.java

+14
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@ public boolean add(T item, int index)
6262
}
6363
}
6464

65+
public byte removeItem(int index) {
66+
if(index > 0 && index <= size()) {
67+
((Vector)vectorExternal).remove((int) index -1);
68+
}
69+
70+
return super.removeItem(index);
71+
}
72+
73+
public void clear() {
74+
vectorExternal.clear();
75+
76+
super.clear();
77+
}
78+
6579
public void setExternalStruct(AbstractCollection data)
6680
{
6781
vectorExternal = data;

0 commit comments

Comments
 (0)