Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0019968 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2012-03-06 17:44 | 2012-04-02 06:11 | |||
Reporter | maite | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | 765405ae0687 | ||||
Projection | none | ETA | none | Target Version | 3.0MP10 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | OBPS | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | 14580 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0019968: Products with different search key but same name are considered the same by Product Complete selector | |||||||
Description | Products with different search key but same name are considered the same by Product Complete selector | |||||||
Steps To Reproduce | 1. Go to Product window and create new record with search key= a1 and name=a 2. Go to Product window and create new record with search key= a and name=a 3. Go to Physical Inventory window and create record 4. Add inventory line, using Product selector filter by search key "a" and stocked='N'. Select product "a1", set storage bin and save. 5. Navigate using Product link and realize that you are carried to product a1 (which is OK) 6. Add inventory line, using Product selector filter by search key "a" and stocked='N'. Select product "a", set storage bin and save 7. Navigate using Product link and realize that you are carried to product a1 (which is NOT OK) Also, you can verify that m_product_id in m_inventoryline is the same for both lines, while you have chosen different products in Product selector | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0046224) alostale (viewer) 2012-03-09 11:38 |
I can reproduce this issue when editing in form view, but not when in grid view. |
(0046277) alostale (viewer) 2012-03-12 16:32 |
The problem is caused because the valueMap associated with the selector, which is populated on record selection is adding ID + displayed text. In the case of same displayed text, there are 2 values for the same text, making SmartClient not able to decide which one to select. The solution is to remove duplicated entries when selecting a value in the selector. The fix is riskless as it only affect this corner case. Test plan: follow steps to reproduce in both grid and form views. |
(0046278) hgbot (developer) 2012-03-12 16:35 |
Repository: erp/devel/pi Changeset: 765405ae06874583cdde5f731a27d3270f6a45aa Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Mon Mar 12 16:34:22 2012 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/765405ae06874583cdde5f731a27d3270f6a45aa [^] fixed bug 19968: Selectors don't work having different items with same displayed value Removing duplicated entrie on item selection fixes the problem. --- M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js --- |
(0046321) maite (viewer) 2012-03-13 11:14 |
verified |
(0046672) hgbot (developer) 2012-03-23 11:59 |
Repository: erp/devel/pi Changeset: a0e58b778cf63bb2eebffdcb00c11c008719d74e Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Fri Mar 23 11:53:50 2012 +0100 URL: http://code.openbravo.com/erp/devel/pi/rev/a0e58b778cf63bb2eebffdcb00c11c008719d74e [^] fixed bug 20068: Selector doesn't work when 2 items have same identifier Reimplemented fix for bug 19968 in a more generic way: do not only clean the valueMap when selecting an item in the selector pop up but whenever value is set. --- M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js --- |
(0047097) hudsonbot (viewer) 2012-04-02 06:09 |
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 |
(0047208) hudsonbot (viewer) 2012-04-02 06:11 |
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 |
![]() |
|||
Date Modified | Username | Field | Change |
2012-03-06 17:44 | maite | New Issue | |
2012-03-06 17:44 | maite | Assigned To | => alostale |
2012-03-06 17:44 | maite | Modules | => Core |
2012-03-06 17:44 | maite | OBNetwork customer | => Yes |
2012-03-06 17:44 | maite | Support ticket | => 14580 |
2012-03-06 17:44 | maite | Issue Monitored: networkb | |
2012-03-06 17:47 | alostale | Assigned To | alostale => vmromanos |
2012-03-09 09:53 | vmromanos | Assigned To | vmromanos => alostale |
2012-03-09 09:55 | alostale | Priority | immediate => urgent |
2012-03-09 09:55 | alostale | Status | new => scheduled |
2012-03-09 09:55 | alostale | Target Version | => 3.0MP10 |
2012-03-09 11:38 | alostale | Note Added: 0046224 | |
2012-03-12 16:32 | alostale | Note Added: 0046277 | |
2012-03-12 16:35 | hgbot | Checkin | |
2012-03-12 16:35 | hgbot | Note Added: 0046278 | |
2012-03-12 16:35 | hgbot | Status | scheduled => resolved |
2012-03-12 16:35 | hgbot | Resolution | open => fixed |
2012-03-12 16:35 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/765405ae06874583cdde5f731a27d3270f6a45aa [^] |
2012-03-13 11:14 | maite | Note Added: 0046321 | |
2012-03-13 11:14 | maite | Status | resolved => closed |
2012-03-21 16:47 | alostale | Relationship added | related to 0020068 |
2012-03-23 11:59 | hgbot | Checkin | |
2012-03-23 11:59 | hgbot | Note Added: 0046672 | |
2012-04-02 06:09 | hudsonbot | Checkin | |
2012-04-02 06:09 | hudsonbot | Note Added: 0047097 | |
2012-04-02 06:11 | hudsonbot | Checkin | |
2012-04-02 06:11 | hudsonbot | Note Added: 0047208 |
Copyright © 2000 - 2009 MantisBT Group |