diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADWindowToolbar.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADWindowToolbar.java index 8cbd0437e5..2b7f8d95a6 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADWindowToolbar.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/adwindow/ADWindowToolbar.java @@ -898,6 +898,11 @@ public class ADWindowToolbar extends FToolbar implements EventListener break; } } + } else if (p instanceof Combobox) { + if (advancedName.equals(((Combobox) p).getId())) { + this.removeChild(p); + break; + } } } @@ -946,6 +951,8 @@ public class ADWindowToolbar extends FToolbar implements EventListener if (p instanceof ToolBarButton) { if (!customButtons.contains(p) && !p.isVisible()) p.setVisible(true); + } else if (p instanceof Combobox && !p.isVisible()) { + p.setVisible(true); } } @@ -964,6 +971,11 @@ public class ADWindowToolbar extends FToolbar implements EventListener break; } } + } else if (p instanceof Combobox) { + if (restrictName.equals(((Combobox) p).getId())) { + p.setVisible(false); + break; + } } }