details:   https://code.openbravo.com/erp/devel/pi/rev/d208b0b6ef08
changeset: 21073:d208b0b6ef08
user:      Shankar Balachandran <shankar.balachandran <at> openbravo.com>
date:      Mon Sep 02 09:48:15 2013 +0530
summary:   Fixes Issue 0024637: Display Logic does not work in tabs located in 
windows that have several tabs referencing the same entity

When we have more than one entity referenced in the same window, the header 
reference is overwritten in the hash-map with the tab referencing the same 
entity.
Overriding is prevented and only if entity is not found in the hash map, it is 
added.

diffstat:

 
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java
 |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r d9b490f70ad2 -r d208b0b6ef08 
modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java
--- 
a/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java
      Wed Sep 04 15:49:58 2013 +0200
+++ 
b/modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java
      Mon Sep 02 09:48:15 2013 +0530
@@ -403,7 +403,9 @@
         entity = 
ModelProvider.getInstance().getEntityByTableName(aTab.getTable().getDBTableName());
       }
       entities.add(entity);
-      tabOfEntity.put(entity, aTab);
+      if (!tabOfEntity.containsKey(entity)){
+        tabOfEntity.put(entity, aTab);
+      }
     }
 
     if (tab.getColumn() != null) {

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to