Skip to content

Commit 7b6c446

Browse files
authored
Remove Method was not working right when it was applied to an External Object Property that is collection of an External Object. (#811)
Issue: 106028
1 parent 4ce9306 commit 7b6c446

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

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

Lines changed: 14 additions & 0 deletions
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)