details:   https://code.openbravo.com/erp/devel/pi/rev/3d998773a085
changeset: 32331:3d998773a085
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Tue Jun 20 14:49:17 2017 +0200
summary:   fixed bug 36299: VerticalMenu.html borrows 2 connections

  Do not translate xmlEngine document in this way:
   - No extra connection is acquired
   - No need to execute extra DB queries

diffstat:

 src/org/openbravo/erpCommon/utility/VerticalMenu.java |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 2ffddb16d735 -r 3d998773a085 
src/org/openbravo/erpCommon/utility/VerticalMenu.java
--- a/src/org/openbravo/erpCommon/utility/VerticalMenu.java     Tue Jun 20 
13:35:04 2017 +0200
+++ b/src/org/openbravo/erpCommon/utility/VerticalMenu.java     Tue Jun 20 
14:49:17 2017 +0200
@@ -64,6 +64,7 @@
 
     final XmlDocument xmlDocument = xmlEngine.readXmlTemplate(
         "org/openbravo/erpCommon/utility/VerticalMenu").createXmlDocument();
+    xmlDocument.ignoreTranslation = true;
 
     xmlDocument.setParameter("language", "defaultLang=\"" + vars.getLanguage() 
+ "\";");
     xmlDocument.setParameter("theme", vars.getTheme());

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to