details:   https://code.openbravo.com/erp/devel/pi/rev/76953299f25e
changeset: 32826:76953299f25e
user:      Armaignac <collazoandy4 <at> gmail.com>
date:      Mon Jan 02 23:15:01 2017 -0800
summary:   Fixes for issue 34792: Error printed in openbravo log when accessing 
to GLR

While accessing a General Ledger Report without selecting a group by criteria
an error was printed in the openbravo log at tomcat because the xml template
does not properly discard the sections according to the user shown structure

diffstat:

 src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.java |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 813c115641f1 -r 76953299f25e 
src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.java
--- a/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.java   Wed Sep 
27 11:23:03 2017 +0200
+++ b/src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.java   Mon Jan 
02 23:15:01 2017 -0800
@@ -286,7 +286,7 @@
     String strmProductIdAux = strmProductId;
     String strcProjectIdAux = strcProjectId;
     if (StringUtils.isEmpty(strDateFrom) && StringUtils.isEmpty(strDateTo)) {
-      String discard[] = { "sectionAmount", "sectionPartner" };
+      String discard[] = { "sectionAmount", "sectionGroupBy" };
       xmlDocument = xmlEngine.readXmlTemplate(
           "org/openbravo/erpCommon/ad_reports/ReportGeneralLedger", 
discard).createXmlDocument();
       toolbar
@@ -296,7 +296,7 @@
     } else {
       String[] discard = { "discard" };
       if (StringUtils.isEmpty(strGroupBy)) {
-        discard[0] = "sectionPartner";
+        discard[0] = "sectionGroupBy";
       } else {
         discard[0] = "sectionAmount";
       }

------------------------------------------------------------------------------
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