diff --git a/zkwebui/WEB-INF/src/org/adempiere/webui/editor/WEditor.java b/zkwebui/WEB-INF/src/org/adempiere/webui/editor/WEditor.java index a3c7d0bb35..8a3da3fbdd 100644 --- a/zkwebui/WEB-INF/src/org/adempiere/webui/editor/WEditor.java +++ b/zkwebui/WEB-INF/src/org/adempiere/webui/editor/WEditor.java @@ -92,7 +92,9 @@ public abstract class WEditor implements EventListener, PropertyChangeListener } this.setComponent(comp); - comp.setAttribute("zk_component_prefix", "Field_" + gridField.getColumnName() + "_" + gridField.getAD_Tab_ID() + "_" + gridField.getWindowNo() + "_"); + String gridTabName = gridField.getGridTab() != null + ? "_" + gridField.getGridTab().getName() : ""; + comp.setAttribute("zk_component_prefix", "Field_" + gridField.getColumnName() + gridTabName); this.gridField = gridField; this.setMandatory(gridField.isMandatory(false)); this.readOnly = gridField.isReadOnly();