Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0019968
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2012-03-06 17:442012-04-02 06:11
ReportermaiteView Statuspublic 
Assigned Toalostale 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision765405ae0687
ProjectionnoneETAnoneTarget Version3.0MP10
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0019968: Products with different search key but same name are considered the same by Product Complete selector

DescriptionProducts with different search key but same name are considered the same by Product Complete selector
Steps To Reproduce1. 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
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 00200683.0MP10 closedalostale Products with different search key but same name are considered the same 

-  Notes
(0046224)
alostale (manager)
2012-03-09 11:38

I can reproduce this issue when editing in form view, but not when in grid view.
(0046277)
alostale (manager)
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 (developer)
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 (developer)
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 (developer)
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

- Issue History
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 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
Powered by Mantis Bugtracker