details:   https://code.openbravo.com/erp/devel/pi/rev/5f9a1bf7005c
changeset: 21354:5f9a1bf7005c
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Wed Oct 23 11:55:11 2013 +0200
summary:   Fixes bug 24995: Moving to the next record in the grid with 'Tab' 
does not work

In this changeset [1] it was wrongly assumed that the newRow property 
represented whether the record being edit was new, but it represents if the 
grid is about to move to a new line. To check if the row is being created, 
this.getEditForm().isNew should be used.

[1] 
https://code.openbravo.com/erp/devel/pi/rev/9138cdfbcb9badfceaf1a0eb54b4be87fec6eb35

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 16187b3a7c1e -r 5f9a1bf7005c 
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
     Wed Oct 23 11:04:37 2013 +0200
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
     Wed Oct 23 11:55:11 2013 +0200
@@ -2950,7 +2950,7 @@
       return;
     }
 
-    if (newRow && editCompletionEvent === 'tab' && !ficCallDone) {
+    if (this.getEditForm().isNew && editCompletionEvent === 'tab' && 
!ficCallDone) {
       this.setEditValue(rowNum, 'actionAfterFicReturn', {
         target: this,
         method: this.cellEditEnd,

------------------------------------------------------------------------------
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=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to