details:   https://code.openbravo.com/erp/devel/pi/rev/aec4c4f24da5
changeset: 13650:aec4c4f24da5
user:      Antonio Moreno <antonio.moreno <at> openbravo.com>
date:      Thu Sep 01 16:47:28 2011 +0200
summary:   Fixed issue 17176. Removed unnecesary left keyword.

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/MenuManager.java
 |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r db224c38b097 -r aec4c4f24da5 
modules/org.openbravo.client.application/src/org/openbravo/client/application/MenuManager.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/MenuManager.java
    Thu Sep 01 16:46:56 2011 +0200
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/MenuManager.java
    Thu Sep 01 16:47:28 2011 +0200
@@ -277,8 +277,8 @@
   @SuppressWarnings("unchecked")
   private void linkWindows() {
     // collect the valid tabs/windows
-    final String tabsHql = "select t from ADTab t left join fetch t.window 
left join fetch t.table, ADWindowAccess awa "
-        + "where awa.role.id=:roleId and t.active = true and t.window.active = 
true and t.window = awa.window and t.tabLevel = 0";
+    final String tabsHql = "select t from ADTab t join fetch t.window w join 
fetch t.table, ADWindowAccess awa "
+        + "where awa.role.id=:roleId and t.active = true and w.active = true 
and w = awa.window and t.tabLevel = 0";
     final Query tabsQry = 
OBDal.getInstance().getSession().createQuery(tabsHql);
     tabsQry.setParameter("roleId", OBContext.getOBContext().getRole().getId());
     // force a load

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to