Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017610Openbravo ERPB. User interfacepublic2011-06-10 20:422011-07-05 17:30
dbaz 
dbaz 
urgentmajoralways
closedfixed 
5
 
3.0MP1 
Core
No
0017610: The focus goes to the last form item if firstFocusedField is not defined
The focus goes to the last form item if firstFocusedField is not defined
As "System Administrator" open "Module" window
Go to form view
Notice that the focus goes to the last section

This is wrong, it should go to the first focusable input


if you remove the line "canTabToHeader: true" of ob-formitem-section.js you notice that no element in the form gets the focus once it is loaded

if you keep the same line of ob-formitem-section.js then the focus is placed at the last section once the form is loaded
No tags attached.
related to defect 00179043.0MP2 closed alostale Focus is chosen randomly if there is no firstFocusedField defined in a tab 
diff 17610.diff (864) 2011-06-13 11:23
https://issues.openbravo.com/file_download.php?file_id=4200&type=bug
Issue History
2011-06-10 20:42dbazNew Issue
2011-06-10 20:42dbazAssigned To => dbaz
2011-06-10 20:42dbazModules => Core
2011-06-10 20:44hgbotCheckin
2011-06-10 20:44hgbotNote Added: 0038268
2011-06-10 20:44hgbotStatusnew => resolved
2011-06-10 20:44hgbotResolutionopen => fixed
2011-06-10 20:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0b90b5b8efeddbb4aaf58ca62fd8a44c6f693be9 [^]
2011-06-13 11:22iperdomoNote Added: 0038287
2011-06-13 11:22iperdomoStatusresolved => new
2011-06-13 11:22iperdomoResolutionfixed => open
2011-06-13 11:23iperdomoFile Added: 17610.diff
2011-06-13 11:23iperdomoFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/0b90b5b8efeddbb4aaf58ca62fd8a44c6f693be9 [^] =>
2011-06-13 11:23iperdomoTarget Version3.0MP0 => 3.0MP1
2011-06-13 13:06dbazNote Added: 0038293
2011-06-13 13:07hgbotCheckin
2011-06-13 13:07hgbotNote Added: 0038294
2011-06-13 13:07hgbotStatusnew => resolved
2011-06-13 13:07hgbotResolutionopen => fixed
2011-06-13 13:07hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ecbb4c95a556053ca5678586c025583fc62903ea [^]
2011-06-22 11:44hudsonbotCheckin
2011-06-22 11:44hudsonbotNote Added: 0038449
2011-06-22 11:44hudsonbotCheckin
2011-06-22 11:44hudsonbotNote Added: 0038456
2011-07-05 17:14marvintmRelationship addedblocks 0017904
2011-07-05 17:14marvintmRelationship deletedblocks 0017904
2011-07-05 17:14marvintmRelationship addedrelated to 0017904
2011-07-05 17:30marvintmNote Added: 0038787
2011-07-05 17:30marvintmStatusresolved => closed

Notes
(0038268)
hgbot   
2011-06-10 20:44   
Repository: erp/devel/pi
Changeset: 0b90b5b8efeddbb4aaf58ca62fd8a44c6f693be9
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Fri Jun 10 20:44:19 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0b90b5b8efeddbb4aaf58ca62fd8a44c6f693be9 [^]

Fixed issue 17610: Now the focus goes to the first focusable item, if firstFocusedField is not defined

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0038287)
iperdomo   
2011-06-13 11:22   
In Financial Account > Transactions the focus gets in "Audit" section, since all the previous fields are not "focusable".

We want to avoid resetting the focus on read-only and single-record tabs?
(0038293)
dbaz   
2011-06-13 13:06   
Read-only/Disabled fields can not get the focus, so the focus moves to the first focusable item.

A fix will be added to force the scroll always be in the top of the form when it loads
(0038294)
hgbot   
2011-06-13 13:07   
Repository: erp/devel/pi
Changeset: ecbb4c95a556053ca5678586c025583fc62903ea
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Mon Jun 13 13:06:44 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/ecbb4c95a556053ca5678586c025583fc62903ea [^]

Fixed issue 17610: Scroll now is always on top when form view loads (independently of where the focus is)

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0038449)
hudsonbot   
2011-06-22 11:44   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/abb438586c0e [^]

Maturity status: Test
(0038456)
hudsonbot   
2011-06-22 11:44   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/abb438586c0e [^]

Maturity status: Test
(0038787)
marvintm   
2011-07-05 17:30   
The problem described in the issue has been fixed. However, a separate one has been discovered (the focused field is apparently chosen semi-randomly, from one of the first fields).

Therefore, a separate issue has been logged (17904).