Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030297Openbravo ERPA. Platformpublic2015-07-02 09:462015-08-20 23:16
ngarcia 
alostale 
immediateminoralways
closedfixed 
5
 
3.0PR15Q4 
AugustoMauch
Core
Production - Confirmed Stable
2014-08-24
3.0PR14Q4
https://code.openbravo.com/erp/devel/pi/rev/976a64153145b468099f13d78289ad45b4fb06c7 [^]
No
0030297: Reference with Search parent reference (old selector) is not working under some circumstances
Reference with Search parent reference (old selector) is not working under some circumstances
As system admin role:
   Add Name in Display Field field (Defined Selector tab) for the Product reference
As group admin role:
   Create a Sales Order
   Add a line, select one product in the Product selector and check the following error is shown (Developers tools):
      Uncaught TypeError: Cannot read property 'replace' of undefined
   As a consequence, the callout is not launched
No tags attached.
depends on backport 00303163.0PR15Q3 closed alostale Reference with Search parent reference (old selector) is not working under some circumstances 
depends on backport 00303173.0PR15Q2.3 closed alostale Reference with Search parent reference (old selector) is not working under some circumstances 
caused by defect 00274693.0PR14Q4 closed shankarb Unexpected behavior in OBUISEL_Selector reference when the Display Field is set 
related to defect 0030362 acknowledged Triage Platform Base selector display field in-homogeneous behavior in grid and drop down 
causes defect 0030403 closed caristu Unexpected behavior in grid view with OBUISEL_Selector reference when the Display Field is set 
Issue History
2015-07-02 09:46ngarciaNew Issue
2015-07-02 09:46ngarciaAssigned To => platform
2015-07-02 09:46ngarciaModules => Core
2015-07-02 09:46ngarciaTriggers an Emergency Pack => No
2015-07-02 09:49ngarciaIssue Monitored: networkb
2015-07-03 09:42ngarciaRelationship addedcaused by 0027469
2015-07-06 11:13alostaleRegression level => Production - Confirmed Stable
2015-07-06 11:13alostaleRegression date => 2014-08-24
2015-07-06 11:13alostaleRegression introduced in release => 3.0PR14Q4
2015-07-06 11:13alostaleRegression introduced by commit => https://code.openbravo.com/erp/devel/pi/rev/976a64153145b468099f13d78289ad45b4fb06c7 [^]
2015-07-06 11:13alostalePriorityhigh => immediate
2015-07-06 11:13alostaleAssigned Toplatform => alostale
2015-07-06 11:13alostaleStatusnew => scheduled
2015-07-06 11:17alostaleNote Added: 0078659
2015-07-06 11:21hgbotCheckin
2015-07-06 11:21hgbotNote Added: 0078664
2015-07-06 11:21hgbotStatusscheduled => resolved
2015-07-06 11:21hgbotResolutionopen => fixed
2015-07-06 11:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/22f85795e81fcad7a6c4c5465ba60d582c69919b [^]
2015-07-06 11:22alostaleReview Assigned To => AugustoMauch
2015-07-06 16:39AugustoMauchNote Added: 0078681
2015-07-06 16:39AugustoMauchStatusresolved => closed
2015-07-06 16:39AugustoMauchFixed in Version => 3.0PR15Q4
2015-07-15 08:50alostaleRelationship addedrelated to 0030362
2015-07-22 10:10alostaleRelationship addedcauses 0030403
2015-08-20 23:16hudsonbotCheckin
2015-08-20 23:16hudsonbotNote Added: 0079471

Notes
(0078659)
alostale   
2015-07-06 11:17   
Fix tested with Search and OBUISEL_Selector references having display field for property in the main entity and in a referenced one.

It has also been tested issue 0027469 is not reproducible after the fix.
(0078664)
hgbot   
2015-07-06 11:21   
Repository: erp/devel/pi
Changeset: 22f85795e81fcad7a6c4c5465ba60d582c69919b
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Jul 06 11:20:55 2015 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/22f85795e81fcad7a6c4c5465ba60d582c69919b [^]

fixed bug 30297: selectors with display field property fail

  They failed in case the display field property was not in the main property but
  in a referenced one. In this case, the property was tried to be obtained from the
  record object in an incorrect manner (path to the referred entity was removed).

  The fix preserves path to referred entity and checks for not null value before
  doing replacements in the string.

---
M modules/org.openbravo.userinterface.selector/web/org.openbravo.userinterface.selector/js/ob-selector-item.js
---
(0078681)
AugustoMauch   
2015-07-06 16:39   
Code reviewed and verified in pi@adc2491ee60b
(0079471)
hudsonbot   
2015-08-20 23:16   
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/8c91718397a5 [^]
Maturity status: Test