Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030316Openbravo ERPA. Platformpublic2015-07-02 09:462015-07-06 17:05
ngarcia 
alostale 
immediateminoralways
closedfixed 
5
 
3.0PR15Q33.0PR15Q3 
AugustoMauch
Core
Production - Confirmed Stable
2014-08-24
3.0PR14Q4
https://code.openbravo.com/erp/devel/pi/rev/976a64153145b468099f13d78289ad45b4fb06c7 [^]
No
0030316: 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.0PR15Q3
2015-07-06 11:35alostaleReview Assigned To => AugustoMauch
2015-07-06 12:58hgbotCheckin
2015-07-06 12:58hgbotNote Added: 0078673
2015-07-06 12:58hgbotStatusscheduled => resolved
2015-07-06 12:58hgbotResolutionopen => fixed
2015-07-06 12:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q3/rev/c95251b3e0b52ad32dd9ef146762dc3e98b21046 [^]
2015-07-06 17:05AugustoMauchNote Added: 0078683
2015-07-06 17:05AugustoMauchStatusresolved => closed
2015-07-06 17:05AugustoMauchFixed in Version => 3.0PR15Q3

Notes
(0078673)
hgbot   
2015-07-06 12:58   
Repository: erp/backports/3.0PR15Q3
Changeset: c95251b3e0b52ad32dd9ef146762dc3e98b21046
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.0PR15Q3/rev/c95251b3e0b52ad32dd9ef146762dc3e98b21046 [^]

fixed bug 30316: 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
---
(0078683)
AugustoMauch   
2015-07-06 17:05   
Code reviewed and verified in [1]@c95251b3e0b5

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