From f63d735da59ed8451ef4fdb819b52388ca355f60 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Fri, 7 Dec 2012 07:04:06 +0800 Subject: [PATCH] IDEMPIERE-92 - Integrate Selenium. Fixed a non-unique id issue. --- .../WEB-INF/src/org/adempiere/webui/panel/RolePanel.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/RolePanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/RolePanel.java index a6dfe1b82f..fbaf1264b8 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/RolePanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/RolePanel.java @@ -360,7 +360,11 @@ public class RolePanel extends Window implements EventListener, Deferrabl for (int i = 0; i < roleKNPairs.length; i++) { ComboItem ci = new ComboItem(roleKNPairs[i].getName(), roleKNPairs[i].getID()); - ci.setId(ci.getLabel()); + if (lstRole.getFellowIfAny(ci.getLabel()) != null) { + ci.setId(ci.getLabel()+"_"+i); + } else { + ci.setId(ci.getLabel()); + } lstRole.appendChild(ci); if (roleKNPairs[i].getID().equals(initDefault)) lstRole.setSelectedItem(ci);