details:   /erp/devel/pi/rev/af44aeacff1d
changeset: 12525:af44aeacff1d
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Fri May 27 16:46:39 2011 +0100
summary:   Fixed issue 16748. Remove incorrect filtering by trl=true when 
reading refListTrls

diffstat:

 
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java
                   |  2 +-
 
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceProperty.java
 |  2 +-
 
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java
  |  2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r 3bf5295a7f03 -r af44aeacff1d 
modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java
--- 
a/modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java
       Fri May 27 17:45:12 2011 +0200
+++ 
b/modules/org.openbravo.client.myob/src/org/openbravo/client/myob/WidgetProvider.java
       Fri May 27 16:46:39 2011 +0100
@@ -420,7 +420,7 @@
     // set the default if no translation found
     final String hql = "select al.searchKey, trl.name from ADList al, 
ADListTrl trl where "
         + " al.reference.id=? and trl.listReference=al and trl.language.id=?"
-        + " and al.active=true and trl.active=true and trl.translation=true";
+        + " and al.active=true and trl.active=true";
     final Query qry = OBDal.getInstance().getSession().createQuery(hql);
     qry.setString(0, referenceId);
     qry.setString(1, userLanguageId);
diff -r 3bf5295a7f03 -r af44aeacff1d 
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceProperty.java
--- 
a/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceProperty.java
     Fri May 27 17:45:12 2011 +0200
+++ 
b/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceProperty.java
     Fri May 27 16:46:39 2011 +0100
@@ -164,7 +164,7 @@
     // set the default if no translation found
     final String hql = "select al.searchKey, trl.name from ADList al, 
ADListTrl trl where "
         + " al.reference.id=? and trl.listReference=al and trl.language.id=?"
-        + " and al.active=true and trl.active=true and trl.translation=true";
+        + " and al.active=true and trl.active=true";
     final Query qry = OBDal.getInstance().getSession().createQuery(hql);
     qry.setString(0, referenceId);
     qry.setString(1, userLanguageId);
diff -r 3bf5295a7f03 -r af44aeacff1d 
modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java
--- 
a/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java
      Fri May 27 17:45:12 2011 +0200
+++ 
b/modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/DataSourceServlet.java
      Fri May 27 16:46:39 2011 +0100
@@ -321,7 +321,7 @@
             }
             final String hqltrl = "select al.searchKey, trl.name from ADList 
al, ADListTrl trl where "
                 + " al.reference.id=? and trl.listReference=al and 
trl.language.id=?"
-                + " and al.active=true and trl.active=true and 
trl.translation=true";
+                + " and al.active=true and trl.active=true";
             final Query qrytrl = 
OBDal.getInstance().getSession().createQuery(hqltrl);
             qrytrl.setString(0, referenceId);
             qrytrl.setString(1, userLanguageId);

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to