Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019956Openbravo ERPA. Platformpublic2012-03-06 12:382012-04-02 10:24
dmiguelez 
AugustoMauch 
normalminoralways
closedfixed 
20Community Appliance
pi 
3.0MP9 
Core
No
0019956: Business Partner selector does not work properly when accessing from keyboard.
When trying to create a Sales Order only with keyboard, the Business Partner selector does not work properly.
It seems it fails when entering it using the tab key.
- Login as Openbravo/openbravo.
- Change Role to QATesting Admin
- Create a new Sales Order:
  - Change Transaction Document to Standard Order.
  - Using the tab key move to Business Partner and try to write CUSA, so Customer A is selected instead.
  - It does not let the user to write it properly, and if try times times, eventually it will crash and won't let change anything.
Regression
related to defect 00187393.0MP4 closed mtaal Business Partner selector overwrites first typed letter 
related to defect 0018360 closed alostale Focus change in selector after deleting the entered value 
has duplicate defect 0020014 closed AugustoMauch Selector can not be used using keyboard 
png Pantallazo-2.png (50,124) 2012-03-06 12:53
https://issues.openbravo.com/file_download.php?file_id=5056&type=bug
png
Issue History
2012-03-06 12:38dmiguelezNew Issue
2012-03-06 12:38dmiguelezAssigned To => alostale
2012-03-06 12:38dmiguelezModules => Core
2012-03-06 12:39dmiguelezRelationship addedrelated to 0018739
2012-03-06 12:39dmiguelezRelationship addedrelated to 0018360
2012-03-06 12:52dmiguelezNote Added: 0046083
2012-03-06 12:53dmiguelezFile Added: Pantallazo-2.png
2012-03-14 16:11alostaleRelationship addedduplicate of 0020014
2012-03-14 16:15alostaleRelationship replacedrelated to 0020014
2012-03-14 16:15alostaleNote Added: 0046413
2012-03-14 16:15alostaleTag Attached: Regression QA
2012-03-14 16:16alostaleAssigned Toalostale => AugustoMauch
2012-03-14 17:27AugustoMauchTag Attached: Regression
2012-03-15 11:00AugustoMauchRelationship replacedhas duplicate 0020014
2012-03-15 11:18AugustoMauchNote Deleted: 0046413
2012-03-15 11:18AugustoMauchTag Detached: Regression QA
2012-03-15 12:01hgbotCheckin
2012-03-15 12:01hgbotNote Added: 0046446
2012-03-15 12:01hgbotStatusnew => resolved
2012-03-15 12:01hgbotResolutionopen => fixed
2012-03-15 12:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3403fcc40fa4ce03901f5f5b8621023c53688fc5 [^]
2012-03-15 12:15AugustoMauchNote Added: 0046447
2012-03-15 12:45marvintmStatusresolved => closed
2012-04-01 20:33hgbotCheckin
2012-04-01 20:33hgbotNote Added: 0047011
2012-04-01 20:33hgbotStatusclosed => resolved
2012-04-01 20:33hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/3403fcc40fa4ce03901f5f5b8621023c53688fc5 [^] => http://code.openbravo.com/erp/devel/pi/rev/20e38edb6bf0683d3a4d200910137b438709c489 [^]
2012-04-02 06:10hudsonbotCheckin
2012-04-02 06:10hudsonbotNote Added: 0047145
2012-04-02 10:24AugustoMauchStatusresolved => closed
2012-04-02 10:24AugustoMauchFixed in Version => 3.0MP9

Notes
(0046083)
dmiguelez   
2012-03-06 12:52   
To reproduce this issue is only needed to create a new Sales Order in the form.
  - The focus is already in the Business Partner. Write something and delte it.
  - Then it will not work properly, deleting the first character the user writes.
(0046446)
hgbot   
2012-03-15 12:01   
Repository: erp/devel/pi
Changeset: 3403fcc40fa4ce03901f5f5b8621023c53688fc5
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Mar 15 12:00:42 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3403fcc40fa4ce03901f5f5b8621023c53688fc5 [^]

Fixes issue 19956: Selecters are not validated on change

The property validateOnChange of ob-selector-item has been set to false. This way, the validation of the selectors is only done when an option is selected or when the content of the selector is deleted.

This change not only fixes the issue but also improves the behaviour of selectors, because prior to the fix, if a mandatory selector had text entered but no option selected, the save button was enabled. Now the save button is not enabled until an option is selected.

---
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
---
(0046447)
AugustoMauch   
2012-03-15 12:15   
Test plan

1. Test that the issue has been solved:
- Open Sales Order
- Click "Create new record in form view" button
- The focus should be in the business partner field. Type 'a'. Some options should appear (this worked prior to the fix)
- Delete the character just entered. Type 'a' again. The same options should appear (prior to the fix, the 'a' was deleted and no options shown).
- Select an option, and save. The save should be successful.

2. Test that the validation is still fired when it should
The validation should be fired when an option is selected (1) and when the content of the field is deleted (2).
- Open Sales Order
- Click "Create new record in form view" button
- Open the business partner selector and select an option. Validation (1) should be fired. The focus should move to the next field, the save button should be enabled and the title of the business partner field should be black.
- Select the text of the selected option, and press delete. Validation (2) should be fired: the save button should be disabled, and the title of the bussines partner field should be red.
(0047011)
hgbot   
2012-04-01 20:33   
Repository: erp/devel/pi
Changeset: 20e38edb6bf0683d3a4d200910137b438709c489
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Mar 15 12:00:42 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/20e38edb6bf0683d3a4d200910137b438709c489 [^]

Fixes issue 19956: Selecters are not validated on change

The property validateOnChange of ob-selector-item has been set to false. This way, the validation of the selectors is only done when an option is selected or when the content of the selector is deleted.

This change not only fixes the issue but also improves the behaviour of selectors, because prior to the fix, if a mandatory selector had text entered but no option selected, the save button was enabled. Now the save button is not enabled until an option is selected.

---
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
---
(0047145)
hudsonbot   
2012-04-02 06:10   
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/7814864461ac [^]

Maturity status: Test