Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030317Openbravo ERPA. Platformpublic2015-07-02 09:462015-07-06 16:55
ngarcia 
alostale 
immediateminoralways
closedfixed 
5
 
3.0PR15Q2.33.0PR15Q2.3 
AugustoMauch
Core
Production - Confirmed Stable
2014-08-24
3.0PR14Q4
https://code.openbravo.com/erp/devel/pi/rev/976a64153145b468099f13d78289ad45b4fb06c7 [^]
No
0030317: 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.
blocks defect 0030297 closed alostale Reference with Search parent reference (old selector) is not working under some circumstances 
Issue History
2015-07-06 11:13alostaleTypedefect => backport
2015-07-06 11:13alostaleTarget Version => 3.0PR15Q2.3
2015-07-06 11:35alostaleReview Assigned To => AugustoMauch
2015-07-06 12:57hgbotCheckin
2015-07-06 12:57hgbotNote Added: 0078672
2015-07-06 12:57hgbotStatusscheduled => resolved
2015-07-06 12:57hgbotResolutionopen => fixed
2015-07-06 12:57hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q2.3/rev/ee52eedc0ba3dab0e1b9cb54b4582bb1057fed0a [^]
2015-07-06 16:55AugustoMauchNote Added: 0078682
2015-07-06 16:55AugustoMauchStatusresolved => closed
2015-07-06 16:55AugustoMauchFixed in Version => 3.0PR15Q2.3

Notes
(0078672)
hgbot   
2015-07-06 12:57   
Repository: erp/backports/3.0PR15Q2.3
Changeset: ee52eedc0ba3dab0e1b9cb54b4582bb1057fed0a
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Mon Jul 06 11:20:55 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2.3/rev/ee52eedc0ba3dab0e1b9cb54b4582bb1057fed0a [^]

fixed bug 30317: 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
---
(0078682)
AugustoMauch   
2015-07-06 16:55   
Code reviewed and verified in [1]@ee52eedc0ba3

[1] https://code.openbravo.com/erp/backports/3.0PR15Q2.3/ [^]