Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0028396Openbravo ERPB. User interfacepublic2014-12-12 09:292016-10-24 10:07
caristu 
AugustoMauch 
highminoralways
closedfixed 
5
pi 
3.0PR15Q23.0PR15Q1 
alostale
Core
No
0028396: Focus is placed automatically on the field group (if any) having all the fields in read only mode
Focus is placed automatically on the field group (if any) having all the fields in read only mode.

This is happening because in this case the first focused element type is "OBSectionItem"
As system admin
1) Go to the [Field category] window and create a new field category
2) Go to the [Windows, Tabs and Fields] window, navigate to the Unit of Measure record, and assign the recently created field category to the Active field, for example.
Login as F&B Admin
3) Go to the [Unit of Measure] tab and increase the Translation tab enough to have scrolling on the header
4) Access on any register in form mode. Notice that the screen scrolls down automatically to the new field category.
No tags attached.
related to defect 00282313.0PR15Q2 closed AugustoMauch Focus is placed automatically on the last field under some circumnstances 
related to defect 0034057 closed NaroaIriarte Wrong Tabulation Order in form fields in Organization window 
? issue28396.export (2,274) 2014-12-29 12:23
https://issues.openbravo.com/file_download.php?file_id=7642&type=bug
Issue History
2014-12-12 09:29caristuNew Issue
2014-12-12 09:29caristuAssigned To => dbaz
2014-12-12 09:29caristuModules => Core
2014-12-12 09:29caristuResolution time => 1422831600
2014-12-12 09:29caristuTriggers an Emergency Pack => No
2014-12-12 09:30caristuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=7258#r7258
2014-12-12 09:30caristuRelationship addedrelated to 0028231
2014-12-12 09:38caristuIssue Monitored: networkb
2014-12-12 09:38caristuDescription Updatedbug_revision_view_page.php?rev_id=7260#r7260
2014-12-12 09:39caristuDescription Updatedbug_revision_view_page.php?rev_id=7261#r7261
2014-12-29 10:56AugustoMauchAssigned Todbaz => AugustoMauch
2014-12-29 12:23AugustoMauchFile Added: issue28396.export
2014-12-29 12:25AugustoMauchNote Added: 0072850
2014-12-29 12:25AugustoMauchStatusnew => scheduled
2014-12-29 12:25AugustoMauchfix_in_branch => pi
2015-01-05 13:39AugustoMauchIssue Monitored: alostale
2015-01-05 13:39AugustoMauchReview Assigned To => alostale
2015-01-05 13:39AugustoMauchfix_in_branchpi =>
2015-01-05 16:03hgbotCheckin
2015-01-05 16:03hgbotNote Added: 0073308
2015-01-05 16:03hgbotStatusscheduled => resolved
2015-01-05 16:03hgbotResolutionopen => fixed
2015-01-05 16:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/ee94d9308674dfe3ab1767bbc87274d59a92d31b [^]
2015-01-12 12:16alostaleNote Added: 0073417
2015-01-12 12:16alostaleStatusresolved => closed
2015-01-12 12:16alostaleFixed in Version => 3.0PR15Q1
2015-02-04 20:33hudsonbotCheckin
2015-02-04 20:33hudsonbotNote Added: 0074106
2015-02-04 20:33hudsonbotCheckin
2015-02-04 20:33hudsonbotNote Added: 0074107
2016-10-24 10:07NaroaIriarteRelationship addedrelated to 0034057

Notes
(0072850)
AugustoMauch   
2014-12-29 12:25   
A fix has been attached. It will be pushed to pi once it is open for changesets targeting PR15Q2
(0073308)
hgbot   
2015-01-05 16:03   
Repository: erp/devel/pi
Changeset: ee94d9308674dfe3ab1767bbc87274d59a92d31b
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Mon Dec 29 12:22:58 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/ee94d9308674dfe3ab1767bbc87274d59a92d31b [^]

Fixes bug 28396:Focus not placed in field group if form has no editable fields

The issue 28396 [1] describes a problem that happens when the first focused field is a field group. This other issue [2] describes a very similar problem, the only difference beinge that instead of being reproduced in general field groups, it was reproduced for the specific audit field group. Its fixes [3], [4] only solved the problem for that particular field group.

The present changeset fixes the problem in a more general way. Instead on checking the type of the field being focused (that will change depending of whether the field group is general or specific (audit, notes, attachments, etc) it calls isc.isA.SectionItem to see whether the focused field is a field group.

[1] https://issues.openbravo.com/view.php?id=28396 [^]
[2] https://issues.openbravo.com/view.php?id=28231 [^]
[3] https://code.openbravo.com/erp/devel/pi/rev/a72704b89964c9dd369c422ccefeecca16e26551 [^]
[4] https://code.openbravo.com/erp/devel/pi/rev/c523abe0e8115d406c7e2515be7aef9d5209ce73 [^]

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
---
(0073417)
alostale   
2015-01-12 12:16   
code reviewed + tested
(0074106)
hudsonbot   
2015-02-04 20:33   
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/f36c91d0ad63 [^]
Maturity status: Test
(0074107)
hudsonbot   
2015-02-04 20:33   
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/f36c91d0ad63 [^]
Maturity status: Test