details:   /erp/devel/pi/rev/86dd7a035971
changeset: 11804:86dd7a035971
user:      Martin Taal <martin.taal <at> openbravo.com>
date:      Fri Apr 29 12:10:42 2011 +0200
summary:   Fixes issue 16942: Values are copied from one line to the other in 
inline grid editing when moving from one row to the next

diffstat:

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

diffs (15 lines):

diff -r 53ddd0ec0d40 -r 86dd7a035971 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
  Thu Apr 28 17:48:24 2011 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-view-grid.js
  Fri Apr 29 12:10:42 2011 +0200
@@ -1651,6 +1651,11 @@
       }
       this.view.isEditingGrid = false;
       this.refreshRow(rowNum);
+      // clear all values, as null values in the new row won't overwrite 
filled form
+      // values
+      if (this.getEditForm()) {
+        this.getEditForm().clearValues();
+      }
     }
     
     // always hide the clickmask, as it needs to be re-applied

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to