details:   http://code.openbravo.com/erp/devel/pi/rev/eb1c7b377d79
changeset: 3508:eb1c7b377d79
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Fri Apr 03 15:08:46 2009 +0200
summary:   fixed bug 0008418: Switching from Grid to Edit mode in Languages 
shows the wrong one

diffstat:

 src-wad/src/org/openbravo/wad/Wad.java                |  2 +-
 src/org/openbravo/erpCommon/utility/TableSQLData.java |  5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 89fa0d18fe3e -r eb1c7b377d79 src-wad/src/org/openbravo/wad/Wad.java
--- a/src-wad/src/org/openbravo/wad/Wad.java    Fri Apr 03 06:27:49 2009 -0400
+++ b/src-wad/src/org/openbravo/wad/Wad.java    Fri Apr 03 15:08:46 2009 +0200
@@ -3468,7 +3468,7 @@
         "org/openbravo/wad/Template_Relation", discard).createXmlDocument();
     xmlDocument.setParameter("form", tabName + "_Edition.html");
     xmlDocument.setParameter("tab", tabNamePresentation);
-    if (strTable.equals("111"))
+    if (strTab.equals("445"))
       keyColumnName = "AD_Language";
     xmlDocument.setParameter("key", "inp" + 
Sqlc.TransformaNombreColumna(keyColumnName));
     xmlDocument.setParameter("keyId", keyColumnName);
diff -r 89fa0d18fe3e -r eb1c7b377d79 
src/org/openbravo/erpCommon/utility/TableSQLData.java
--- a/src/org/openbravo/erpCommon/utility/TableSQLData.java     Fri Apr 03 
06:27:49 2009 -0400
+++ b/src/org/openbravo/erpCommon/utility/TableSQLData.java     Fri Apr 03 
15:08:46 2009 +0200
@@ -2063,10 +2063,9 @@
         dataAux.setData("isidentifier", 
(prop.getProperty("IsIdentifier").equals("Y") ? "true"
             : "false"));
 
-        boolean isKey = (!getTableName().equals("AD_Language")
+        boolean isKey = (!getTabID().equals("445")
             && prop.getProperty("ColumnName").equals(getKeyColumn()) && 
!cloneRecord)
-            || (getTableName().equals("AD_Language") && 
prop.getProperty("ColumnName").equals(
-                "AD_Language"));
+            || (getTabID().equals("445") && 
prop.getProperty("ColumnName").equals("AD_Language"));
 
         dataAux.setData("iskey", isKey ? "true" : "false");
         dataAux.setData("isvisible", 
((prop.getProperty("IsDisplayed").equals("Y") && prop

------------------------------------------------------------------------------
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to