From b2a629155c127049ad6d83b3e013b25ef29550a1 Mon Sep 17 00:00:00 2001 From: Deepak Pansheriya Date: Wed, 13 Jun 2018 06:14:41 -0400 Subject: [PATCH] #IDEMPIERE-3733 : Advanced Search - Deleting other then last line cause ID space issue --- .../WEB-INF/src/org/adempiere/webui/window/FindWindow.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java index 6fb8ca3fc3..df7ae65c4c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/FindWindow.java @@ -232,6 +232,8 @@ public class FindWindow extends Window implements EventListener, ValueCha private Properties m_simpleCtx; private Properties m_advanceCtx; + private int rowCount; + private static final String ON_POST_VISIBLE_ATTR = "onPostVisible.Event.Posted"; /** @@ -831,7 +833,7 @@ public class FindWindow extends Window implements EventListener, ValueCha if (null!=fields && fields.length>=1 && fields[0].contains(HISTORY_SEPARATOR)) return; ListItem listItem = new ListItem(); - listItem.setId("Row"+advancedPanel.getItemCount()); + listItem.setId("Row"+ rowCount++); Listbox listColumn = new Listbox(); listColumn.setId("listColumn"+listItem.getId());