details:   https://code.openbravo.com/erp/devel/pi/rev/68b2765a34ff
changeset: 21050:68b2765a34ff
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Fri Aug 30 11:11:11 2013 +0200
summary:   Fixes issue 24566: The proper summary function description text is 
shown

The problem was that the description text was being set in the field of the 
OBViewGrid, but then read from the field of OBViewGrid_summaryRow. To fix this, 
the description text is going to be read from the same field that was used to 
set it.

diffstat:

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

diffs (12 lines):

diff -r d2a46a66e45c -r 68b2765a34ff 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
  Mon Aug 26 12:19:41 2013 +0530
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
  Fri Aug 30 11:11:11 2013 +0200
@@ -787,7 +787,7 @@
 
 isc.OBGridSummary.addProperties({
   getCellStyle: function (record, rowNum, colNum) {
-    var field = this.getField(colNum);
+    var field = this.parentElement.getField(colNum);
     if (field.summaryFunction && this['summaryRowStyle_' + 
field.summaryFunction]) {
       return this['summaryRowStyle_' + field.summaryFunction];
     } else {

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to