details:   https://code.openbravo.com/erp/devel/pi/rev/74c81a31c181
changeset: 21255:74c81a31c181
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Wed Oct 09 19:46:27 2013 +0200
summary:   Fixes issue 24918: Grid not working properly in some Windows.

THe problem is that an attribute was being initialized as an array [] instead 
of as an object {}. The error occurred when this attribute was accessed using 
the square bracket notation.

diffstat:

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

diffs (12 lines):

diff -r e721f9bcbfc1 -r 74c81a31c181 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Wed Oct 09 19:45:30 2013 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
     Wed Oct 09 19:46:27 2013 +0200
@@ -546,7 +546,7 @@
   getFieldFromFieldName: function (fieldName) {
     var i, length, localResult, fields;
     if (!this.fieldsByFieldName) {
-      localResult = [];
+      localResult = {};
       fields = this.getFields();
       length = fields.length;
       for (i = 0; i < fields.length; i++) {

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to