Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018117Openbravo ERPB. User interfacepublic2011-07-28 17:292011-08-08 00:52
adrianromero 
mtaal 
immediatemajoralways
closedfixed 
5
 
3.0MP23.0MP2 
Google Chrome
Core
No
0018117: Typing a new value in an empty field the first character is deleted and needs to be retyped
Create a new record in any window. Put the focus in an emtpy and mandatory field like "Name" and start typing.

You can see that the first character is lost. This is because after typing the first character, the content of the field is selected, then when typing the second character the first character typed disapear. This behavior cannot be reproduced in non mandatory fields.

I am using Chromium 12.0.742.112 (90304) Ubuntu 10.10
This is one of the cases found

* Change the role to System Administrator - System.
* Go to the window "Reference"
* Press "Create a new record in a form"
* You will see that the focus will start in the empty field Name
* Click in the module combo box
* Press tab to go to the next field, which is the name field
* Start typing for example: 12345... You will notice that in the text field appears 2345... because the first character "1" has been selected after it has been typed and when "2" is typed the character "1" is removed.

This has been tested in Chromium 12.0.742.112 (90304) Ubuntu 10.10 . It also can be reproduced in Firefoc 3.6.18 (Not supported, I know)
No tags attached.
related to defect 00180723.0MP4 closed mtaal Focus handling in form and grid editing needs to be cleaned up, results in unpredictable behavior 
related to defect 00180863.0MP4 closed mtaal When pressing tab in suggestion box, field displayed through displaylogic is skipped 
Issue History
2011-07-28 17:29adrianromeroNew Issue
2011-07-28 17:29adrianromeroAssigned To => iperdomo
2011-07-28 17:29adrianromeroWeb browser => Google Chrome
2011-07-28 17:29adrianromeroModules => Core
2011-08-01 11:45psarobeNote Added: 0039561
2011-08-01 11:45psarobeStatusnew => feedback
2011-08-01 11:47psarobeNote Edited: 0039561bug_revision_view_page.php?bugnote_id=0039561#r2524
2011-08-01 12:30adrianromeroWeb browserGoogle Chrome => Google Chrome
2011-08-01 12:30adrianromeroStatusfeedback => new
2011-08-01 12:30adrianromeroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2526#r2526
2011-08-01 12:30adrianromeroNote Added: 0039567
2011-08-01 17:55mtaalRelationship addedrelated to 0018072
2011-08-03 10:22adrianromeroWeb browserGoogle Chrome => Google Chrome
2011-08-03 10:22adrianromeroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2535#r2535
2011-08-03 10:24adrianromeroWeb browserGoogle Chrome => Google Chrome
2011-08-03 10:24adrianromeroSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2536#r2536
2011-08-03 10:29psarobeWeb browserGoogle Chrome => Google Chrome
2011-08-03 10:29psarobeSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2537#r2537
2011-08-03 10:40psarobeWeb browserGoogle Chrome => Google Chrome
2011-08-03 10:40psarobeAssigned Toiperdomo => mtaal
2011-08-03 10:40psarobePrioritynormal => urgent
2011-08-03 10:40psarobeSeverityminor => major
2011-08-03 10:40psarobeStatusnew => scheduled
2011-08-03 10:40psarobeTarget Version3.0MP3 => 3.0MP2
2011-08-03 11:14psarobeWeb browserGoogle Chrome => Google Chrome
2011-08-03 11:14psarobePriorityurgent => immediate
2011-08-04 08:42mtaalRelationship addedrelated to 0018086
2011-08-04 08:52hgbotCheckin
2011-08-04 08:52hgbotNote Added: 0039855
2011-08-04 08:52hgbotStatusscheduled => resolved
2011-08-04 08:52hgbotResolutionopen => fixed
2011-08-04 08:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/aac26ae2e074080b38080220517b4e9637194a35 [^]
2011-08-06 05:33hudsonbotCheckin
2011-08-06 05:33hudsonbotNote Added: 0039959
2011-08-08 00:52dbazStatusresolved => closed
2011-08-08 00:52dbazFixed in Version => 3.0MP2

Notes
(0039561)
psarobe   
2011-08-01 11:45   
(edited on: 2011-08-01 11:47)
I cannot reproduce in FF5.0 and Chrome 12.0.742.122 windows 7. Can you please update the steps to reproduce? that could help. I tested in product window

(0039567)
adrianromero   
2011-08-01 12:30   
Steps to reproduce updated.
(0039855)
hgbot   
2011-08-04 08:52   
Repository: erp/devel/pi
Changeset: aac26ae2e074080b38080220517b4e9637194a35
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Thu Aug 04 08:51:06 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/aac26ae2e074080b38080220517b4e9637194a35 [^]

Fixes issue 18117: Typing a new value in an empty field the first character is deleted and needs to be retyped
Disabled usage of selectOnFocus as it has too many side effects and means that the whole value gets selected
also when redrawing the form or when clicking with the mouse in a field.
It means however that selection of values on user actions needs to be specifically coded, this is now done:
- when opening a form
- when selecting a value in a combo the next fields value needs to be selected

IE needed some specific attention as is visible in the issue.

Note that these changes ment that I had to re-open the 18086 issue, which still occurs for selector items.

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-date.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-list.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form.js
M modules/org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/js/ob-smartclient.js
---
(0039959)
hudsonbot   
2011-08-06 05: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/5744448753e7 [^]

Maturity status: Test