details:   https://code.openbravo.com/erp/devel/pi/rev/f164ac49351b
changeset: 26668:f164ac49351b
user:      Naroa Iriarte <naroa.iriarte <at> openbravo.com>
date:      Wed May 20 15:32:41 2015 +0200
summary:   Fixed issue 29641: With lazy filtering, summary functions display 
wrong value

The problem is when a summary function field exists, in this case, it is not 
taken into account the
fact of having the lazy filtering enabled. So, when a summary function is added 
to a field using the UI,
the values of that summary function are displayed before clicking the check 
icon, under the funnel icon,
in the right.
For fix this, a condition that checks if the lazy filtering has been enabled 
has been added.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 3c8f772fc1ba -r f164ac49351b 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Tue May 19 12:19:13 2015 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Wed May 20 15:32:41 2015 +0200
@@ -487,7 +487,7 @@
 
     // only show summary rows if there are summary functions
     for (i = 0; i < this.getFields().length; i++) {
-      if (this.getFields()[i].summaryFunction) {
+      if (this.getFields()[i].summaryFunction && !this.lazyFiltering) {
         this.showGridSummary = true;
       }
     }

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to