[view] use adcs for parameters' tabs
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 02 Aug 2018 14:30:42 +0200
changeset 35058 e8c83b19f124
parent 35057 e677d686ac14
child 35059 87e2392210d2
[view] use adcs for parameters' tabs
modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewParameterHandler.java
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/BaseComponent.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewParameterHandler.java	Thu Aug 02 13:34:24 2018 +0200
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/window/OBViewParameterHandler.java	Thu Aug 02 14:30:42 2018 +0200
@@ -270,7 +270,8 @@
         return null;
       }
 
-      Tab tab = window.getADTabList().get(0);
+      // parameters are not cached in ADCS
+      Tab tab = paramWindow.getADCS().getTab(window.getADTabList().get(0).getId());
 
       final OBViewTab tabComponent = paramWindow.createComponent(OBViewTab.class);
       tabComponent.setTab(tab);
--- a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/BaseComponent.java	Thu Aug 02 13:34:24 2018 +0200
+++ b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/BaseComponent.java	Thu Aug 02 14:30:42 2018 +0200
@@ -299,4 +299,8 @@
   public boolean bypassAuthentication() {
     return false;
   }
+
+  public ApplicationDictionaryCachedStructures getADCS() {
+    return adcs;
+  }
 }